Skip to content

Commit

Permalink
Install phpstan level 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Jun 8, 2021
1 parent 3b3bfd8 commit 1675f69
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:
- name: Run vimeo/psalm on internal code
run: ./vendor/bin/psalm --config=psalm.xml --no-progress --shepherd --show-info=false --stats

- name: Run phpstan on internal code
run: ./vendor/bin/phpstan analyze -c phpstan.neon src tests

tests:
name: Tests
runs-on: ubuntu-latest
Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"phpunit/phpunit": "^9.5",
"vimeo/psalm": "^4.6",
"friendsofphp/php-cs-fixer": "^2.18",
"symfony/var-dumper": "^5.2"
"symfony/var-dumper": "^5.2",
"phpstan/phpstan": "^0.12.88"
},
"autoload": {
"psr-4": {
Expand All @@ -46,12 +47,14 @@
],
"test-quality": [
"@csrun",
"@psalm"
"@psalm",
"@phpstan"
],
"test-unit": "./vendor/bin/phpunit --testsuite=unit",
"test-integration": "./vendor/bin/phpunit --testsuite=integration",
"test-coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --testsuite=unit,integration --coverage-html=coverage",
"psalm": "./vendor/bin/psalm",
"phpstan": "./vendor/bin/phpstan analyze -c phpstan.neon src tests",
"csfix": "./vendor/bin/php-cs-fixer fix --allow-risky=yes",
"csrun": "./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run"
}
Expand Down
62 changes: 61 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
parameters:
level: 5

0 comments on commit 1675f69

Please sign in to comment.