Skip to content

Commit 2b84a96

Browse files
committed
PHPStan: ignore deprecation
1 parent c980cca commit 2b84a96

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

tools/phpstan.baseline.neon

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,49 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Symfony\\\\\\\\Component\\\\\\\\Console\\\\\\\\Application' and Symfony\\\\Component\\\\Console\\\\Application will always evaluate to true\\.$#"
4+
message: '''
5+
#^Call to deprecated method getDefaultName\(\) of class OriNette\\Console\\Command\\CommandsDebugCommand\:
6+
since Symfony 7\.3, use the \#\[AsCommand\] attribute instead$#
7+
'''
8+
identifier: staticMethod.deprecated
9+
count: 1
10+
path: ../tests/Unit/DI/ConsoleExtensionTest.php
11+
12+
-
13+
message: '''
14+
#^Call to deprecated method getDefaultName\(\) of class OriNette\\Console\\Command\\DIParametersCommand\:
15+
since Symfony 7\.3, use the \#\[AsCommand\] attribute instead$#
16+
'''
17+
identifier: staticMethod.deprecated
18+
count: 1
19+
path: ../tests/Unit/DI/ConsoleExtensionTest.php
20+
21+
-
22+
message: '''
23+
#^Call to deprecated method getDefaultName\(\) of class Tests\\OriNette\\Console\\Doubles\\DefaultNameCommand\:
24+
since Symfony 7\.3, use the \#\[AsCommand\] attribute instead$#
25+
'''
26+
identifier: staticMethod.deprecated
27+
count: 1
28+
path: ../tests/Unit/DI/ConsoleExtensionTest.php
29+
30+
-
31+
message: '''
32+
#^Call to deprecated method getDefaultName\(\) of class Tests\\OriNette\\Console\\Doubles\\UrlPrintingCommand\:
33+
since Symfony 7\.3, use the \#\[AsCommand\] attribute instead$#
34+
'''
35+
identifier: staticMethod.deprecated
36+
count: 3
37+
path: ../tests/Unit/DI/ConsoleExtensionTest.php
38+
39+
-
40+
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Symfony\\\\Component\\\\Console\\\\Application'' and Symfony\\Component\\Console\\Application will always evaluate to true\.$#'
41+
identifier: staticMethod.alreadyNarrowedType
542
count: 6
643
path: ../tests/Unit/DI/ConsoleExtensionTest.php
744

845
-
9-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Tests\\\\\\\\OriNette\\\\\\\\Console\\\\\\\\Doubles\\\\\\\\CustomApplication' and Tests\\\\OriNette\\\\Console\\\\Doubles\\\\CustomApplication will always evaluate to true\\.$#"
46+
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Tests\\\\OriNette\\\\Console\\\\Doubles\\\\CustomApplication'' and Tests\\OriNette\\Console\\Doubles\\CustomApplication will always evaluate to true\.$#'
47+
identifier: staticMethod.alreadyNarrowedType
1048
count: 1
1149
path: ../tests/Unit/DI/ConsoleExtensionTest.php

0 commit comments

Comments
 (0)