From f19d01ef92bf7b2092e44e4ee908e131cc04132e Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 26 Oct 2021 21:14:35 +0200 Subject: [PATCH] Ignore less things in tests --- phpstan/config.neon | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpstan/config.neon b/phpstan/config.neon index f29cb73fc..50c15fbcf 100644 --- a/phpstan/config.neon +++ b/phpstan/config.neon @@ -40,8 +40,7 @@ parameters: - '~^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\\[^:]+::(setUp(BeforeClass)?|tearDown(AfterClass)?|test[^(]+)\(\) has no return typehint specified.~' - '~Method Composer\\Test\\[^:]+::(data\w+|provide\w+|\w+Provider)\(\) has no return typehint specified.~' # Level 6 TODO