Skip to content

Commit

Permalink
PHPStan optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Daric971 committed Aug 18, 2021
1 parent 74a5c9f commit 93e4438
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CHANGELOG
master
------

* todo...
* Improve PHPStan configuration file

v0.5.0
------
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ app-security-check: ## to check if any security issues in the PHP dependencies
./local-php-security-checker

app-static-analysis: ## to run static analysis
php -dmemory_limit=-1 vendor/bin/phpstan analyze src tests -l 7
vendor/bin/phpstan analyze --memory-limit=-1

app-test: ## to run unit tests
vendor/bin/phpunit
Expand Down
5 changes: 5 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
parameters:
level: 8
paths:
- src
- tests

checkGenericClassInNonGenericObjectType: false

includes:
Expand Down

0 comments on commit 93e4438

Please sign in to comment.