File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ New extensions are becoming available on a regular basis!
318318
319319## Configuration
320320
321- Config file is passed to the ` phpstan ` executable with ` -c ` option:
321+ A config file can passed to the ` phpstan ` executable using the ` -c ` option:
322322
323323``` bash
324324vendor/bin/phpstan analyse -l 4 -c phpstan.neon src tests
@@ -351,6 +351,16 @@ All the following options are part of the `parameters` section.
351351
352352Relative paths in the configuration are made absolute according to the directory where the configuration file resides.
353353
354+ Here is an example of a ` phpstan.neon ` file to run ` vendor/bin/phpstan analyse ` without any extra argument:
355+
356+ ``` neon
357+ parameters:
358+ level: 5
359+ paths:
360+ - src
361+ - tests
362+ ```
363+
354364### Autoloading
355365
356366PHPStan uses Composer's autoloader by default.
You can’t perform that action at this time.
0 commit comments