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 30, 2023
1 parent 8891477 commit 4c2d5a9
Show file tree
Hide file tree
Showing 2 changed files with 19 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
15 changes: 15 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
parameters:
level: max
checkGenericClassInNonGenericObjectType: false
checkFunctionNameCase: true
checkMissingIterableValueType: false
checkInternalClassCaseSensitivity: true

paths:
- src

scanDirectories:
- vendor

ignoreErrors:
- '#Unsafe usage of new static\(\)#'

0 comments on commit 4c2d5a9

Please sign in to comment.