Bump to level 8, enable strict rules, and ignore all existing errors with baseline
parent
24ce1eddbd
commit
77fec4dc76
File diff suppressed because it is too large
Load Diff
|
@ -1,11 +1,11 @@
|
||||||
includes:
|
includes:
|
||||||
- ../vendor/phpstan/phpstan-phpunit/extension.neon
|
- ../vendor/phpstan/phpstan-phpunit/extension.neon
|
||||||
- ../vendor/phpstan/phpstan-deprecation-rules/rules.neon
|
- ../vendor/phpstan/phpstan-deprecation-rules/rules.neon
|
||||||
# - ../vendor/phpstan/phpstan-strict-rules/rules.neon
|
- ../vendor/phpstan/phpstan-strict-rules/rules.neon
|
||||||
- ./baseline.neon
|
- ./baseline.neon
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
level: 6
|
level: 8
|
||||||
|
|
||||||
excludePaths:
|
excludePaths:
|
||||||
- '../tests/Composer/Test/Fixtures/*'
|
- '../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\\[^:]+::(setUp(BeforeClass)?|tearDown(AfterClass)?|test[^(]+)\(\) has no return type specified.~'
|
||||||
- '~Method Composer\\Test\\[^:]+::(data\w+|provide\w+|\w+?Provider)\(\) 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:
|
bootstrapFiles:
|
||||||
- ../tests/bootstrap.php
|
- ../tests/bootstrap.php
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue