forked from PHP-CS-Fixer/PHP-CS-Fixer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
50 lines (49 loc) · 2.61 KB
/
phpstan.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
45
46
47
48
49
50
includes:
- dev-tools/vendor/jangregor/phpstan-prophecy/src/extension.neon
- dev-tools/vendor/phpstan/phpstan/conf/bleedingEdge.neon
- dev-tools/vendor/phpstan/phpstan-phpunit/extension.neon
parameters:
level: 5
paths:
- src
- tests
excludes_analyse:
- tests/Fixtures
ignoreErrors:
- '/^Return typehint of method PhpCsFixer\\Tests\\Test\\.+::createIsIdenticalStringConstraint\(\) has invalid type PHPUnit_Framework_Constraint_IsIdentical\.$/'
- '/^Class (Symfony\\Contracts\\EventDispatcher\\Event|Symfony\\Component\\EventDispatcher\\Event) not found.$/'
- '/^(Access|Call) to an undefined (property|method) PhpCsFixer\\AccessibleObject\\AccessibleObject::.+$/'
- '/^Constant T_NAME_(RELATIVE|FULLY_QUALIFIED|QUALIFIED) not found\.$/'
-
message: '/^Unsafe usage of new static\(\)\.$/'
path: src/Config.php
-
message: '/^Else branch is unreachable because previous condition is always true\.$/'
path: src/Event/Event.php
-
message: '/^Strict comparison using !== between ''@git-commit@'' and ''@git-commit@'' will always evaluate to false\.$/'
path: src/Console/Application.php
-
message: '/^Result of && is always false\.$/'
path: src/Config.php
-
message: '/^Strict comparison using === between false and true will always evaluate to false\.$/'
path: src/Config.php
-
message: '/^Else branch is unreachable because ternary operator condition is always true\.$/'
paths:
- src/Config.php
- src/Tokenizer/Token.php
-
message: '/^Parameter #1 \$fixers of method PhpCsFixer\\Config::registerCustomFixers\(\) expects iterable<PhpCsFixer\\Fixer\\FixerInterface>, string given\.$/'
path: tests/ConfigTest.php
-
message: '/^Parameter #1 \$options of method PhpCsFixer\\FixerConfiguration\\FixerConfigurationResolverRootless::resolve\(\) expects array<string, mixed>, array<int, string> given\.$/'
path: tests/FixerConfiguration/FixerConfigurationResolverRootlessTest.php
-
message: '/^Parameter #1 \$function of function register_shutdown_function expects callable\(\): void, array\(\$this\(PhpCsFixer\\FileRemoval\), ''clean''\) given\.$/'
path: src/FileRemoval.php
-
message: '/^Parameter #1 \$finder of method PhpCsFixer\\Config::setFinder\(\) expects iterable<string>, int given\.$/'
path: tests/ConfigTest.php
tipsOfTheDay: false