We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
phpstan.neon
README.md
1 parent 9a306a1 commit c9e9675Copy full SHA for c9e9675
README.md
@@ -42,7 +42,34 @@ or add
42
"yii2-extensions/phpstan": "^0.1"
43
```
44
45
-to the require-dev section of your `composer.json` file.
+## Usage
46
+
47
+To use this extension, you need to add the following configuration to your `phpstan.neon` file:
48
49
+```neon
50
+includes:
51
+ - vendor/yii2-extensions/phpstan/extension.neon
52
53
+parameters:
54
+ bootstrapFiles:
55
+ - tests/bootstrap.php
56
57
+ dynamicConstantNames:
58
+ - YII_DEBUG
59
+ - YII_ENV
60
61
+ level: 5
62
63
+ paths:
64
+ - src
65
66
+ scanFiles:
67
+ - vendor/yiisoft/yii2/Yii.php
68
69
+ yii2:
70
+ # Path to your Yii2 configuration file
71
+ config_path: %currentWorkingDirectory%/config/test.php
72
+```
73
74
## Quality code
75
0 commit comments