diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..3d3ce29 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,21 @@ +includes: + - vendor/proget-hq/phpstan-yii2/extension.neon +parameters: + dynamicConstantNames: + - YII_DEBUG + - YII_ENV + - YII_ENV_DEV + - YII_ENV_PROD + - YII_ENV_TEST + + level: 2 + + paths: + - src + + scanFiles: + - vendor/yiisoft/yii2/Yii.php + + yii2: + config_path: %currentWorkingDirectory%/phpstan-yii-config.php +