Skip to content

Commit

Permalink
alphabetically sort config file patterns
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp Bammes <[email protected]>
Signed-off-by: Thorsten Frommen <[email protected]>
  • Loading branch information
tfrommen and tyrann0us authored Jan 7, 2025
1 parent 20127c3 commit cda41a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ jobs:
composer-options: ${{ inputs.COMPOSER_ARGS }}

- name: Run Psalm
if: ${{ hashFiles('psalm.xml.dist', 'psalm.xml') != '' }}
if: ${{ hashFiles('psalm.xml', 'psalm.xml.dist') != '' }}
run: ./vendor/bin/psalm --php-version="${{ inputs.PHP_VERSION }}" ${{ inputs.PSALM_ARGS }}

- name: Run PHPStan
if: ${{ hashFiles('phpstan.neon.dist', 'phpstan.neon', 'phpstan.dist.neon') != '' }}
if: ${{ hashFiles('phpstan.dist.neon', 'phpstan.neon', 'phpstan.neon.dist') != '' }}
run: ./vendor/bin/phpstan ${{ inputs.PHPSTAN_ARGS }}
4 changes: 2 additions & 2 deletions docs/php.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ It does so by executing the binary in the `./vendor/bin/` folder.

| Tool | Files |
|---------|----------------------------------------------------------|
| Psalm | `psalm.xml` |
| PHPStan | `phpstan.neon.dist`, `phpstan.neon`, `phpstan.dist.neon` |
| Psalm | `psalm.xml`, `psalm.xml.dist` |
| PHPStan | `phpstan.dist.neon`, `phpstan.neon`, `phpstan.neon.dist` |

**Simplest possible example:**

Expand Down

0 comments on commit cda41a5

Please sign in to comment.