File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,24 @@ includes:
75
75
76
76
## Adapting to your project
77
77
78
+ ### Specifying your Drupal project's root
79
+
80
+ By default, the PHPStan Drupal extension will try to determine your Drupal project's root directory based on the working
81
+ directory that PHPStan is checking. If this is not working properly, you can explicitly define the Drupal project's root
82
+ directory using the ` drupal_root ` parameter.
83
+
84
+ ```
85
+ drupal:
86
+ drupal_root: /path/to/drupal
87
+ ```
88
+
89
+ You can also use container parameters. For instance you can always set it to the current working directory.
90
+
91
+ ```
92
+ drupal:
93
+ drupal_root: %currentWorkingDirectory%
94
+ ```
95
+
78
96
### Entity storage mappings.
79
97
80
98
The ` EntityTypeManagerGetStorageDynamicReturnTypeExtension ` service helps map dynamic return types. This inspects the
You can’t perform that action at this time.
0 commit comments