Skip to content

Commit

Permalink
[#75] Add phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuapease committed Apr 15, 2024
1 parent e8d9d96 commit 1aed828
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 4 deletions.
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"codeception/module-asserts": "^1.3.1",
"codeception/module-yii2": "^1.1.5",
"codeception/module-phpbrowser": "^1.0.0",
"craftcms/rector": "dev-main"
"craftcms/rector": "dev-main",
"craftcms/phpstan": "dev-main"
},
"autoload": {
"psr-4": {
Expand All @@ -48,5 +49,8 @@
},
"extra": {
"bootstrap": "viget\\base\\Module"
},
"scripts": {
"phpstan": "phpstan --memory-limit=1G"
}
}
34 changes: 31 additions & 3 deletions composer.lock

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

7 changes: 7 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
includes:
- vendor/craftcms/phpstan/phpstan.neon

parameters:
level: 1
paths:
- src

0 comments on commit 1aed828

Please sign in to comment.