File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
tests/PHPStan/Type/Doctrine Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 2
2
<ruleset name =" PHPStan Doctrine extensions" >
3
3
<rule ref =" vendor/consistence/coding-standard/Consistence/ruleset.xml" />
4
4
<rule ref =" vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml" >
5
- <exclude name =" SlevomatCodingStandard.Classes.ClassConstantVisibility.MissingConstantVisibility" />
6
5
<exclude name =" SlevomatCodingStandard.Files.TypeNameMatchesFileName" />
7
6
<exclude name =" SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword" />
8
7
<exclude name =" SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces" />
13
12
<property name =" usefulAnnotations" type =" array" value ="
14
13
@dataProvider
15
14
" />
16
- <property name =" enableNullableTypeHints" type =" false" />
17
- <property name =" enableVoidTypeHint" type =" false" />
18
15
</properties >
19
16
</rule >
20
17
</ruleset >
Original file line number Diff line number Diff line change 12
12
final class EntityManagerFindDynamicReturnTypeExtensionTest extends TestCase
13
13
{
14
14
15
- const ENTITY_CLASS_NAME = '\\Foo \\Bar ' ;
15
+ private const ENTITY_CLASS_NAME = '\\Foo \\Bar ' ;
16
16
17
17
/** @var \PHPStan\Type\Doctrine\EntityManagerFindDynamicReturnTypeExtension */
18
18
private $ extension ;
@@ -187,7 +187,7 @@ public function testGetTypeFromMethodCallWithScalarString(
187
187
string $ entityClassName ,
188
188
string $ method ,
189
189
string $ expectedTypeDescription
190
- )
190
+ ): void
191
191
{
192
192
$ methodReflection = $ this ->mockMethodReflection ($ method );
193
193
$ scope = $ this ->mockScope ();
You can’t perform that action at this time.
0 commit comments