Skip to content

Commit fec389b

Browse files
Merge pull request #20 from ghostwriter/feature/psalm-integration
Psalm integration
2 parents f3a7753 + 852dfe3 commit fec389b

22 files changed

+1529
-111
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
/mkdocs.yml export-ignore
88
/phpcs.xml export-ignore
99
/phpunit.xml.dist export-ignore
10+
/psalm.xml.dist export-ignore
1011
/test/ export-ignore

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
"malukenho/docheader": "^0.1.6",
3838
"phpspec/prophecy": "^1.12",
3939
"phpspec/prophecy-phpunit": "^2.0",
40-
"phpunit/phpunit": "^9.3"
40+
"phpunit/phpunit": "^9.3",
41+
"psalm/plugin-phpunit": "^0.16.0",
42+
"vimeo/psalm": "^4.7"
4143
},
4244
"conflict": {
4345
"laminas/laminas-diactoros": "<1.7.1"
@@ -75,7 +77,8 @@
7577
"cs-fix": "phpcbf",
7678
"test": "phpunit --colors=always",
7779
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
78-
"license-check": "docheader check src/ test/"
80+
"license-check": "docheader check src/ test/",
81+
"static-analysis": "psalm --shepherd --stats"
7982
},
8083
"replace": {
8184
"zendframework/zend-stratigility": "^3.2.0"

0 commit comments

Comments
 (0)