Skip to content

Commit

Permalink
README: update suggested linting command
Browse files Browse the repository at this point in the history
The `--show-deprecated` option was added to PHP Parallel Lint some years ago, but never documented, so I never knew it existed.

Enabling this option allows for deprecations which can be detected at compile time to be shown (in contrast to deprecations which can only be detected at run-time).

Refs:
* php-parallel-lint/PHP-Parallel-Lint#81
* JakubOnderka/PHP-Parallel-Lint#94
  • Loading branch information
jrfnl committed Feb 17, 2022
1 parent 5960ad9 commit 8110f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Typically, (a variation on) the following snippet would be added to the `compose
```json
"scripts" : {
"lint": [
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git"
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git"
]
}
```
Expand Down

0 comments on commit 8110f4e

Please sign in to comment.