-
Notifications
You must be signed in to change notification settings - Fork 14
/
phpstan.neon.dist
68 lines (62 loc) · 2.86 KB
/
phpstan.neon.dist
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
level: 6
checkMissingOverrideMethodAttribute: true
paths:
- .
excludePaths:
- vendor
ignoreErrors:
# relax strict rules
- '~^Only booleans are allowed in .+, .+ given( on the (left|right) side)?\.$~'
- '~^Variable (static )?(property access|method call) on .+\.$~'
# fix unresolvable atk4/ui \Atk4\Ui\App class
- '~^(.+(?<!\w)Atk4\\Ui\\App(?!\w).+|Call to an undefined method .+::(issetApp|getApp)\(\)\.)$~'
-
path: 'tests/DynamicMethodTraitTest.php'
identifier: method.notFound
message: '~^Call to an undefined method Atk4\\Core\\Tests\\(DynamicMethodMock|DynamicMethodWithoutHookMock)::\w+\(\)\.$~'
count: 10
# remove once PHPUnit 9.x support is removed
-
path: 'src/Phpunit/TestCase.php'
identifier: class.notFound
message: '~^Access to constant (STATUS_INCOMPLETE|STATUS_SKIPPED) on an unknown class PHPUnit\\Runner\\BaseTestRunner\.$~'
count: 2
-
path: 'src/Phpunit/TestCase.php'
identifier: method.notFound
message: '~^Call to an undefined method Atk4\\Core\\Phpunit\\TestCase::(getName|getStatus|getTestResultObject)\(\)\.$~'
count: 5
-
path: 'src/Phpunit/TestCase.php'
identifier: staticMethod.notFound
message: '~^Call to an undefined static method PHPUnit\\Util\\Test::(getLinesToBeCovered|getLinesToBeUsed|parseTestMethodAnnotations)\(\)\.$~'
count: 3
-
path: 'src/Phpunit/TestCase.php'
identifier: method.nonObject
message: '~^Cannot call method (className|methodName)\(\) on list<string>\|PHPUnit\\Metadata\\Metadata\.$~'
count: 2
-
path: 'tests/HookTraitTest.php'
identifier: method.notFound
message: '~^Call to an undefined method Atk4\\Core\\Tests\\HookTraitTest::getName\(\)\.$~'
count: 2
-
path: 'tests/Phpunit/TestCaseTest.php'
identifier: method.notFound
message: '~^Call to an undefined method Atk4\\Core\\Tests\\Phpunit\\TestCaseTest::getStatus\(\)\.$~'
count: 1
-
path: 'tests/Phpunit/TestCaseTest.php'
identifier: class.notFound
message: '~^Access to constant STATUS_INCOMPLETE on an unknown class PHPUnit\\Runner\\BaseTestRunner\.$~'
count: 1
# https://github.com/phpstan/phpstan/issues/10150
-
path: 'src/DebugTrait.php'
identifier: method.missingOverride
message: '~^Method Atk4\\Core\\Tests\\DebugPsrMock::\w+\(\) overrides method Psr\\Log\\LoggerInterface::\w+\(\) but is missing the #\[\\Override\] attribute\.$~'
count: 9