Skip to content

Commit

Permalink
Add PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
rungta committed Apr 13, 2024
1 parent 63ac9cb commit e1ef34f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
16 changes: 10 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@
"php": "^7.2.5 || ^8.0"
},
"require-dev": {
"craftcms/rector": "dev-main"
"craftcms/rector": "dev-main",
"craftcms/phpstan": "dev-main"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"allow-plugins": {
"yiisoft/yii2-composer": true,
"craftcms/plugin-installer": true
}
"allow-plugins": {
"yiisoft/yii2-composer": true,
"craftcms/plugin-installer": true
}
},
"autoload": {
"psr-4": {
Expand All @@ -48,5 +49,8 @@
"handle": "cryptographer",
"changelogUrl": "https://raw.githubusercontent.com/miranj/craft-cryptographer/v1/CHANGELOG.md",
"class": "miranj\\cryptographer\\Plugin"
},
"scripts": {
"phpstan": "phpstan --memory-limit=1G"
}
}
}
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: 0
paths:
- src

0 comments on commit e1ef34f

Please sign in to comment.