forked from PHP-CS-Fixer/PHP-CS-Fixer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
27 lines (24 loc) · 1.2 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
includes:
- dev-tools/vendor/jangregor/phpstan-prophecy/extension.neon
- dev-tools/vendor/phpstan/phpstan/conf/bleedingEdge.neon
- dev-tools/vendor/phpstan/phpstan-phpunit/extension.neon
parameters:
level: 6
paths:
- src
- tests
excludePaths:
- tests/Fixtures
ignoreErrors:
- '/^Class [a-zA-Z\\]+ extends @final class PhpCsFixer\\(ConfigurationException\\InvalidConfigurationException|ConfigurationException\\InvalidFixerConfigurationException|Tokenizer\\Tokens)\.$/'
- '/^Unsafe call to private method PhpCsFixer\\Tests\\[a-zA-Z\\]+::[a-zA-Z]+\(\) through static::\.$/'
- '/^\$this\(PhpCsFixer\\Tokenizer\\Tokens\) does not accept PhpCsFixer\\Tokenizer\\Token\|null\.$/'
# ignore PHPUnit data providers return type as they are not checked against the test methods anyway
- '#^Method PhpCsFixer\\Tests\\.+::provide.+Cases\(\) return type has no value type specified in iterable type (array|iterable)\.$#'
# baseline, should only shrink
-
message: '#^.+no value type specified in iterable type.+\.$#'
path: src/Fixer
count: 40
tipsOfTheDay: false
tmpDir: dev-tools/phpstan/cache