Ignore some irrelevant PHPStan errors in test files
parent
3add01a40b
commit
0b8089fe80
|
@ -35,6 +35,11 @@ parameters:
|
|||
# Mock errors
|
||||
- '~^Call to an undefined method (PHPUnit\\Framework\\MockObject\\MockObject|Prophecy\\Prophecy\\ObjectProphecy)::.*$~'
|
||||
|
||||
# Ignore some irrelevant errors in test files
|
||||
- '~Method Composer\\Test\\[^:]+::(setUp(BeforeClass)?|tearDown(AfterClass)?|test[^(]+|get[^(]*?Mock[^(]*)\(\) has no return typehint specified.~'
|
||||
- '~Method Composer\\Test\\[^:]+::test[^(]+\(\) has parameter \$\w+ with no typehint specified.~'
|
||||
- '~Method Composer\\Test\\[^:]+::(data\w+|provide\w+|\w+Provider)\(\) has no return typehint specified.~'
|
||||
|
||||
# Level 6 TODO
|
||||
#- '~parameter .*? with no typehint specified.$~'
|
||||
#- '~parameter .*? with no value type specified in iterable type array.$~'
|
||||
|
|
Loading…
Reference in New Issue