Skip to content

Commit 0e2d031

Browse files
committed
tests: set PHPStan treatPhpDocTypesAsCertain to false
1 parent 44a62c0 commit 0e2d031

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/phpstan/base.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ parameters:
1010

1111
# The Minimum PHP Version
1212
phpVersion: 70224
13+
# If it's not enforced by PHP we can't assume users are passing valid values.
14+
treatPhpDocTypesAsCertain: false
15+
16+
# These config options are explained in https://phpstan.org/config-reference
17+
checkFunctionNameCase: true
18+
inferPrivatePropertyTypeFromConstructor: true
1319

1420
# Constants that are expected to be defined by users.
1521
dynamicConstantNames:

0 commit comments

Comments
 (0)