Skip to content

Commit 13fa7f8

Browse files
committed
Fix code formatting & CI
1 parent 003d2c5 commit 13fa7f8

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.phpcs.xml.dist

+6
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@
1212
<exclude-pattern>tests/Fixtures</exclude-pattern>
1313

1414
<rule ref="HardMode"/>
15+
16+
<!-- Ignore PhpDocReader\AnnotationException -->
17+
<rule ref="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix">
18+
<severity>0</severity>
19+
</rule>
20+
1521
</ruleset>

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
},
2020
"require-dev": {
2121
"phpunit/phpunit": "~8.5",
22-
"mnapoli/hard-mode": "~0.2.0"
22+
"mnapoli/hard-mode": "~0.3.0"
2323
}
2424
}

src/PhpDocReader/PhpDocReader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private function readParameterClass(ReflectionParameter $parameter, bool $allowP
155155
// Use reflection
156156
$parameterType = $parameter->getType();
157157
if ($parameterType) {
158-
if (!$parameterType->isBuiltin() && $parameterType instanceof \ReflectionNamedType) {
158+
if (! $parameterType->isBuiltin() && $parameterType instanceof \ReflectionNamedType) {
159159
return $parameterType->getName();
160160
}
161161
}

tests/Issue87Test.php

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public function testGetParameterTypeUseStatementBeforeLocalNamespace()
7070
$this->assertEquals(SomeDependencyFixture2::class, $result);
7171
}
7272

73-
7473
/**
7574
* This test ensures that use statements in class files take precedence in resolving type annotations
7675
*

0 commit comments

Comments
 (0)