forked from infection/infection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan-src.neon
44 lines (43 loc) · 2.26 KB
/
phpstan-src.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
36
37
38
39
40
41
42
43
44
includes:
- ../vendor/phpstan/phpstan/conf/bleedingEdge.neon
parameters:
tmpDir: ../build/cache/phpstan-src
inferPrivatePropertyTypeFromConstructor: true
ignoreErrors:
- '#.* value type specified in iterable type Symfony\\Component\\Process\\Process#'
- '#generic class ReflectionClass (but )?does not specify its types#'
- '#^Call to static method Webmozart\\Assert\\[a-zA-Z]+::[a-zA-Z]+\(\) with .* will always evaluate to true\.$#'
- '#^Parameter \#\d+ \$.+ \(.+\) of method .+ should be contravariant with parameter \$.+ \(.+\) of method .+$#'
- '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#'
- '#^Dead catch - InvalidArgumentException is never thrown in the try block\.$#'
- '#^Variable (method|property) (access|call) #'
-
path: '../src/Metrics/MetricsCalculator.php'
message: '#^Strict comparison using !== between array<int, Infection\\Mutant\\MutantExecutionResult> and array\(\) will always evaluate to true\.$#'
count: 1
-
path: ../src/TestFramework/Factory.php
message: '#^Parameter \#1 \$callback of function array_map expects callable\(Infection\\TestFramework\\Coverage\\Trace\|SplFileInfo\): mixed, Closure\(SplFileInfo\): string\|false given\.$#'
count: 1
-
path: ../src/TestFramework/Factory.php
message: '#^Parameter \#1 \$iterator of function iterator_to_array expects Traversable, iterable<Infection\\TestFramework\\Coverage\\Trace\|SplFileInfo> given\.$#'
count: 1
-
path: '../src/Container.php'
message: '#^Method Infection\\Container::get.*\(\) should return .* but returns object\.$#'
count: 1
-
path: '../src/Process/OriginalPhpProcess.php'
message: '#Function ini_get is unsafe to use#'
-
path: '../src/TestFramework/Coverage/CoverageChecker.php'
message: '#Function ini_get is unsafe to use#'
level: max
paths:
- ../src
excludes_analyse:
- %currentWorkingDirectory%/src/FileSystem/DummyFileSystem.php
stubFiles:
- phpstan.stub
treatPhpDocTypesAsCertain: false