Skip to content

Commit

Permalink
Added PhpStan configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
batumibiz committed Nov 5, 2024
1 parent d6351ab commit 4ff479c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ jobs:
run: composer install --no-progress --no-interaction

- name: Static Analysis
run: ./vendor/bin/phpstan analyse --no-progress --error-format=github --level 6 src tests
run: ./vendor/bin/phpstan analyse --no-progress --error-format=github
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
],
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"static-analysis": "phpstan analyse --level 6 src tests",
"static-analysis": "phpstan analyse",
"test": "phpunit --colors=always",
"test-coverage": [
"@putenv XDEBUG_MODE=coverage",
Expand Down
5 changes: 5 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
parameters:
level: 6
paths:
- src
- tests\unit

0 comments on commit 4ff479c

Please sign in to comment.