Skip to content

Commit

Permalink
Add PHPStan
Browse files Browse the repository at this point in the history
This is static analysis tool.
It can be executed using `composer phpstan`.
  • Loading branch information
jtojnar committed Aug 15, 2023
1 parent f502060 commit 37d0ff7
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 5 deletions.
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,15 @@
"require" : {
"php": ">=5.3.0"
},
"require-dev": {
"phpstan/phpstan": "^1.10"
},
"extra": {
"branch-alias": {
"dev-master": "1.1.x-dev"
}
},
"scripts": {
"phpstan": "phpstan analyse --memory-limit 512M"
}
}
74 changes: 69 additions & 5 deletions composer.lock

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

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

paths:
- .

excludePaths:
- vendor/

0 comments on commit 37d0ff7

Please sign in to comment.