Skip to content

Commit

Permalink
Github Actions: Add Phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Jun 19, 2023
1 parent d8fed18 commit 6afd465
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
os: ['ubuntu-latest']

steps:
Expand All @@ -40,3 +40,7 @@ jobs:
- name: PHP CodeSniffer
if: success() || matrix.allow_failure
run: phpcs

- name: PHPStan
uses: php-actions/phpstan@v3
if: success() || matrix.allow_failure
7 changes: 7 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
parameters:
level: 1
paths:
- application
- library
ignoreErrors:
- '#Unsafe usage of new static\(\)#'

0 comments on commit 6afd465

Please sign in to comment.