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 a601fae commit a12c5db
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
if: success() || matrix.allow_failure
run: phpcs -wps --colors

- name: PHPStan
uses: php-actions/phpstan@v3
if: success() || matrix.allow_failure

test:
name: Unit tests with php ${{ matrix.php }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down
8 changes: 8 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
parameters:
level: 1
paths:
- src
scanDirectories:
- vendor
ignoreErrors:
- '#Unsafe usage of new static\(\)#'

0 comments on commit a12c5db

Please sign in to comment.