Skip to content

Commit 50202f1

Browse files
committed
CI: Don't treat phpdoc types as certain for phpstan
This fixes a phpstan error about the instanceof check for AnalyticsDetailLevels to always be true. We can't know this in the code, because they are stored in an array, and it's conceivable that wrong values could enter here.
1 parent 49a17e3 commit 50202f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/phpstan.neon.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
parameters:
55
level: 10
6+
treatPhpDocTypesAsCertain: false
67
paths:
78
- ../src
89
bootstrapFiles:

0 commit comments

Comments
 (0)