Skip to content

Commit c98d81d

Browse files
committed
Updated CS for PHP 7.1
1 parent e03752e commit c98d81d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

ruleset.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<ruleset name="PHPStan Doctrine extensions">
33
<rule ref="vendor/consistence/coding-standard/Consistence/ruleset.xml"/>
44
<rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml">
5-
<exclude name="SlevomatCodingStandard.Classes.ClassConstantVisibility.MissingConstantVisibility"/>
65
<exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName"/>
76
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword"/>
87
<exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces"/>
@@ -13,8 +12,6 @@
1312
<property name="usefulAnnotations" type="array" value="
1413
@dataProvider
1514
"/>
16-
<property name="enableNullableTypeHints" type="false" />
17-
<property name="enableVoidTypeHint" type="false" />
1815
</properties>
1916
</rule>
2017
</ruleset>

tests/PHPStan/Type/Doctrine/EntityManagerFindDynamicReturnTypeExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
final class EntityManagerFindDynamicReturnTypeExtensionTest extends TestCase
1313
{
1414

15-
const ENTITY_CLASS_NAME = '\\Foo\\Bar';
15+
private const ENTITY_CLASS_NAME = '\\Foo\\Bar';
1616

1717
/** @var \PHPStan\Type\Doctrine\EntityManagerFindDynamicReturnTypeExtension */
1818
private $extension;
@@ -187,7 +187,7 @@ public function testGetTypeFromMethodCallWithScalarString(
187187
string $entityClassName,
188188
string $method,
189189
string $expectedTypeDescription
190-
)
190+
): void
191191
{
192192
$methodReflection = $this->mockMethodReflection($method);
193193
$scope = $this->mockScope();

0 commit comments

Comments
 (0)