Repository navigation
Expand file tree
/
Copy pathphpstan.neon
More file actions
31 lines (31 loc) · 1.5 KB
/
Copy pathphpstan.neon
File metadata and controls
31 lines (31 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
parameters:
level: 10
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/*
# The public API keeps its empty default value (BC), while the PHPDoc describes the resolved options
- identifier: parameter.defaultValue
paths:
- src/Client/Client.php
- src/Client/ClientInterface.php