Skip to content

Commit

Permalink
Increase PHPStan level
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Jul 21, 2020
1 parent c52595f commit 51a976c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
run: php7.4 $(which composer) install --no-interaction --no-progress --no-suggest --no-plugins

- name: "Run phpstan/phpstan"
run: php7.4 vendor/bin/phpstan analyse --level 7 src tests
run: php7.4 vendor/bin/phpstan analyse --level 8 src tests

tests:
name: "Tests"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test: ## Run PHPUnit for the unit tests
docker-compose run --rm --no-deps yin-php /bin/bash -c "cd /var/www && ./vendor/bin/phpunit"

phpstan: ## Run PHPStan to perform static analysis
docker-compose run --rm --no-deps yin-php /bin/bash -c "cd /var/www && ./vendor/bin/phpstan analyse --level 7 src tests"
docker-compose run --rm --no-deps yin-php /bin/bash -c "cd /var/www && ./vendor/bin/phpstan analyse --level 8 src tests"

cs: ## Run PHP CodeSniffer to detect issues with coding style
docker-compose run --rm --no-deps yin-php /var/www/vendor/bin/phpcs --standard=/var/www/phpcs.xml
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"scripts": {
"test": "phpunit",
"phpstan": "phpstan analyse --level 7 src tests",
"phpstan": "phpstan analyse --level 8 src tests",
"phpcs": "phpcs",
"phpcbf": "phpcbf"
},
Expand Down

0 comments on commit 51a976c

Please sign in to comment.