Skip to content

Commit 1e63771

Browse files
committed
Add phpstan/phpstan-deprecation-rules
1 parent a7350b8 commit 1e63771

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"friendsofphp/php-cs-fixer": "^3.88",
4848
"phpstan/extension-installer": "^1.2",
4949
"phpstan/phpstan": "^2.0",
50+
"phpstan/phpstan-deprecation-rules": "^2.0",
5051
"phpstan/phpstan-symfony": "^2.0",
5152
"phpunit/phpunit": "^11",
5253
"symfony/doctrine-messenger": "^6.4|^7.4|^8.0",

phpstan-baseline.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ parameters:
1111
# @legacy SF <= 7.4
1212
-
1313
message: '#Call to function method_exists\(\) with Symfony\\Component\\Console\\Application and .addCommand. will always evaluate to true#'
14+
-
15+
identifier: method.deprecated
16+
message: '#Call to deprecated method add\(\) of class Symfony\\Component\\Console\\Application#'
17+
paths:
18+
- tests/

0 commit comments

Comments
 (0)