Skip to content

Commit

Permalink
Adjust config for PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Dec 18, 2024
1 parent c2bf846 commit 33918c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
phpstan:
name: Static Code Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -17,9 +18,9 @@ jobs:
uses: php-actions/composer@v6
with:
command: update
php_version: "7.4"

- name: PHPStan Static Analysis
uses: php-actions/phpstan@v3
with:
configuration: ./.github/phpstan.neon
path: ''
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
"@composer docs:stop",
"@composer docs:build",
"@composer docs:start"
],
"phpstan": [
"@php vendor/bin/phpstan --configuration=\".github/phpstan.neon\""
]
},
"config": {
Expand Down

0 comments on commit 33918c2

Please sign in to comment.