-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
23 lines (23 loc) · 1006 Bytes
/
phpstan.neon.dist
File metadata and controls
23 lines (23 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
parameters:
level: 8
paths:
- src
- tests
excludePaths:
# Bootstrap shim — verified by BackwardsCompatibilityAliasTest
# at runtime. PHPStan would otherwise need to inspect the
# alias targets and complain about them not existing in the
# legacy namespace, which is the whole point of the shim.
- src/aliases.php
treatPhpDocTypesAsCertain: false
reportUnmatchedIgnoredErrors: true
ignoreErrors:
# We intentionally pass values of the wrong type into the public
# API so we can assert that the runtime guards fire. PHPStan is
# right that the call would never compile in well-typed code,
# but that is the whole point of the test. Restricted to *Test.php
# under tests/ so the pattern cannot mask genuine bugs elsewhere.
-
message: '#^Parameter \#\d+ \$\w+ of method InitPHP\\Events\\.+ expects .+, .+ given\.$#'
paths:
- tests/*Test.php