forked from infection/infection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan-tests.neon
35 lines (35 loc) · 2.34 KB
/
phpstan-tests.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
parameters:
tmpDir: ../build/cache/phpstan-tests
parallel:
processTimeout: 120.0
checkGenericClassInNonGenericObjectType: false
checkMissingIterableValueType: false
excludes_analyse:
- %currentWorkingDirectory%/tests/e2e/*
- %currentWorkingDirectory%/tests/phpunit/Fixtures/*
inferPrivatePropertyTypeFromConstructor: true
ignoreErrors:
- '#Return type \((void|mixed)\) of method .*(Visitor|Traverser).* should be compatible with return type .* of method PhpParser\\Node.*#'
- '#^Cannot call method (willReturn|shouldBeCalledTimes)\(\) on iterable<Infection\\Mutation\\Mutation>\.$#'
- '#Offset .*\\.* does not exist on array<class-string<.*>.*#'
- '#Dynamic call to static method PHPUnit\\Framework\\.*::.*#'
- '#^Call to method PHPUnit\\Framework\\Assert::.* with array.* and array.* will always evaluate to false\.$#'
- '#^Call to method PHPUnit\\Framework\\Assert::assertNotFalse\(\) with SimpleXMLElement and ''Expected dumped…'' will always evaluate to true\.$#'
- '#^Call to method PHPUnit\\Framework\\Assert::assertNotFalse\(\) with string will always evaluate to true\.$#'
- '#^Call to method PHPUnit\\Framework\\Assert::assertInstanceOf\(\) with ''[a-zA-Z\\]+'' and [a-zA-Z\\]+ will always evaluate to (false|true)\.$#'
- '#^Call to method PHPUnit\\Framework\\Assert::assertSame\(\) with [a-zA-Z\\&]+ and mixed will always evaluate to true\.$#'
- '#^Call to method PHPUnit\\Framework\\Assert::assertTrue\(\) with true will always evaluate to true\.$#'
- '#^Call to static method Webmozart\\Assert\\[a-zA-Z]+::[a-zA-Z]+\(\) with .* will always evaluate to true\.$#'
- '#^PHPDoc tag @var for variable \$sourceFilesCollectorProphecy contains unresolvable type#'
- '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#'
-
message: "#^Variable method call on Infection\\\\Tests\\\\FileSystem\\\\Finder\\\\MockVendor\\.$#"
count: 1
path: ../tests/phpunit/FileSystem/Finder/TestFrameworkFinderTest.php
-
message: '#Function ini_get is unsafe to use#'
path: ../tests/phpunit/Process/OriginalPhpProcessTest.php
level: 4
paths:
- ../tests/phpunit
treatPhpDocTypesAsCertain: false