Files
23cm/vendor/codeception/module-yii2/phpstan.neon
2026-01-25 18:18:09 +08:00

21 lines
656 B
Plaintext

#includes:
# - phpstan-baseline.neon
parameters:
reportUnmatchedIgnoredErrors: true
dynamicConstantNames:
- CONSOLE
- YII_DEBUG
level: 5
paths:
- src
checkMaybeUndefinedVariables: true
checkGenericClassInNonGenericObjectType: false
ignoreErrors:
# All Yii setters accept `null` but their phpdoc is incorrect.
- message: '~^Parameter #1 \$(.+) of method yii\\web\\Request::set(.+)\(\) expects (.+), null given.$~'
path: 'src/'
- message: '~^Variable \$_COOKIE in isset\(\) always exists and is not nullable.$~'
path: 'src/'
stubFiles:
- tests/Yii.stub