Skip to content

Commit

Permalink
[#3] Install and configure PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuapease committed May 21, 2024
1 parent 85ffb31 commit 80d41d0
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
.DS_Store
node_modules
/web/dist
/.vite
/.vite
php-cs-fixer.cache
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"require-dev": {
"craftcms/ecs": "dev-main",
"craftcms/generator": "^2.0.0",
"craftcms/phpstan": "dev-main",
"yiisoft/yii2-shell": "^2.0.3"
},
"autoload": {
Expand Down Expand Up @@ -47,6 +48,7 @@
"@php -r \"file_exists('.env') || copy('.env.example.dev', '.env');\""
],
"ecs-check": "ecs check --ansi",
"ecs-fix": "ecs check --ansi --fix"
"ecs-fix": "ecs check --ansi --fix",
"phpstan": "phpstan --memory-limit=1G"
}
}
90 changes: 88 additions & 2 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: 5
paths:
- modules

0 comments on commit 80d41d0

Please sign in to comment.