Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
"league/flysystem-local": "^3.0",
"phpstan/extension-installer": "*",
"phpstan/phpstan": "*",
"phpstan/phpstan-deprecation-rules": "*",
"phpstan/phpstan-phpunit": "*",
"phpstan/phpstan-symfony": "*",
"phpunit/phpunit": "^10.5|^11|^12|^13",
"rector/rector": "*",
Expand Down
21 changes: 21 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,24 @@ parameters:
paths:
- src
- tests
# Same ignores in all the process bundles: not all of them match in each bundle
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# PHPUnit 13 deprecates expectExceptionMessage() (sebastianbergmann/phpunit#6560), still needed with PHPUnit 11 and 12
- message: '#^Call to deprecated method expectExceptionMessage\(\) of class PHPUnit\\Framework\\TestCase#'
path: tests/*
# Symfony 8.1 deprecates HttpKernel\Bundle\BundleInterface: its replacement does not exist in Symfony 6.4 and 7.4
- message: '#typehint with deprecated interface Symfony\\Component\\HttpKernel\\Bundle\\BundleInterface#'
path: tests/*
# The tests of the deprecated code of the bundles use it
- message: '#deprecated .*CleverAge\\#'
path: tests/*
# Assertions on values already known by PHPStan, kept as regression checks (or values changed by reference)
- identifier: staticMethod.alreadyNarrowedType
path: tests/*
- identifier: method.alreadyNarrowedType
path: tests/*
- identifier: staticMethod.impossibleType
path: tests/*
- identifier: method.impossibleType
path: tests/*
Loading