Skip to content

Commit 420a99d

Browse files
authored
Merge pull request #21 from gsteel/psalm-and-cs
Add Psalm, Drop PHP 7.3 and Update Coding Standard to 2.3
2 parents 043f6d6 + a11d4e5 commit 420a99d

File tree

12 files changed

+3324
-1256
lines changed

12 files changed

+3324
-1256
lines changed

composer.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,18 @@
2424
}
2525
},
2626
"require": {
27-
"php": "^7.3 || ~8.0.0 || ~8.1.0",
27+
"php": "^7.4 || ~8.0.0 || ~8.1.0",
2828
"laminas/laminas-mvc": "^3.3",
2929
"laminas/laminas-session": "^2.12.0",
3030
"laminas/laminas-stdlib": "^3.6.4",
3131
"laminas/laminas-view": "^2.13.1"
3232
},
3333
"require-dev": {
34-
"laminas/laminas-coding-standard": "~1.0.0",
34+
"laminas/laminas-coding-standard": "~2.3.0",
3535
"laminas/laminas-i18n": "^2.13.0",
36-
"phpunit/phpunit": "^9.5.4"
36+
"phpunit/phpunit": "^9.5.4",
37+
"psalm/plugin-phpunit": "^0.16.1",
38+
"vimeo/psalm": "^4.18"
3739
},
3840
"conflict": {
3941
"laminas/laminas-mvc": "<3.0.0",
@@ -52,10 +54,12 @@
5254
"scripts": {
5355
"check": [
5456
"@cs-check",
55-
"@test"
57+
"@test",
58+
"@static-analysis"
5659
],
5760
"cs-check": "phpcs",
5861
"cs-fix": "phpcbf",
62+
"static-analysis": "psalm --shepherd --stats",
5963
"test": "phpunit --colors=always",
6064
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
6165
},

0 commit comments

Comments
 (0)