Skip to content

Commit d4b36f7

Browse files
committed
Move to composer based psalm
1 parent b39b1fc commit d4b36f7

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,4 +172,4 @@ jobs:
172172
composer install --no-progress --prefer-dist --optimize-autoloader
173173
174174
- name: Psalm
175-
run: psalm --output-format=github
175+
run: vendor/bin/psalm.phar --output-format=github

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ phpstan:
2424

2525
.PHONY: psalm
2626
psalm:
27-
docker run -it --rm -v${CURDIR}:/data -w /data php:7.3 ./tools/psalm
27+
docker run -it --rm -v${CURDIR}:/data -w /data php:7.3 vendor/bin/psalm.phar
2828

2929
.PHONY: test
3030
test:

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"phpunit/phpunit": "^8.2 || ^9.2",
2929
"mockery/mockery": "^1.2",
3030
"phpstan/phpstan": "^0.12",
31-
"ext-simplexml": "*"
31+
"ext-simplexml": "*",
32+
"psalm/phar": "^4.15"
3233
},
3334
"extra": {
3435
"branch-alias": {

phive.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

psalm.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,10 @@
1717
<LessSpecificReturnType errorLevel="info" />
1818

1919
<MissingDependency errorLevel="info" />
20+
<MixedArgumentTypeCoercion>
21+
<errorLevel type="suppress">
22+
<file name="src/phpDocumentor/GraphViz/Graph.php" />
23+
</errorLevel>
24+
</MixedArgumentTypeCoercion>
2025
</issueHandlers>
2126
</psalm>

0 commit comments

Comments
 (0)