1
0
Fork 0

Bump to level 8, enable strict rules, and ignore all existing errors with baseline

pull/10334/head
Jordi Boggiano 2021-12-07 12:50:03 +01:00
parent 24ce1eddbd
commit 77fec4dc76
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 9147 additions and 3 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,11 @@
includes:
- ../vendor/phpstan/phpstan-phpunit/extension.neon
- ../vendor/phpstan/phpstan-deprecation-rules/rules.neon
# - ../vendor/phpstan/phpstan-strict-rules/rules.neon
- ../vendor/phpstan/phpstan-strict-rules/rules.neon
- ./baseline.neon
parameters:
level: 6
level: 8
excludePaths:
- '../tests/Composer/Test/Fixtures/*'
@ -47,6 +47,10 @@ parameters:
- '~Method Composer\\Test\\[^:]+::(setUp(BeforeClass)?|tearDown(AfterClass)?|test[^(]+)\(\) has no return type specified.~'
- '~Method Composer\\Test\\[^:]+::(data\w+|provide\w+|\w+?Provider)\(\) has no return type specified.~'
# PHPUnit assertions as instance methods
- '~Dynamic call to static method PHPUnit\\Framework\\Assert::\w+\(\)~'
- '~Dynamic call to static method PHPUnit\\Framework\\TestCase::(once|at|exactly|will|exactly|returnValue|returnCallback|any|atLeastOnce|throwException|onConsecutiveCalls|never|returnValueMap)\(\)~'
bootstrapFiles:
- ../tests/bootstrap.php