-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
26 lines (20 loc) · 816 Bytes
/
phpstan.neon.dist
File metadata and controls
26 lines (20 loc) · 816 Bytes
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
includes:
- ./vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
tmpDir: .cache/phpstan
paths:
- src
level: 10
# phpstanApi.instanceofType
# We mainly ignore these errors, since we need to check for the explicit type class we got.
# We can't use function such as ->isEnum()->yes() since this could still be a Union of enums
# and needed to be transformed by the union capable transformer first.
#
# phpstanApi.varTagAssumption
# Due to the structure of our transformer, we can rely on verification in the canTransformer() to make
# certain assumptions in the transform() function about the type of the PHPStan Type.
ignoreErrors:
-
identifier: phpstanApi.instanceofType
-
identifier: phpstanApi.varTagAssumption