Skip to content

Commit

Permalink
Move to composer based psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapio committed Dec 13, 2021
1 parent b39b1fc commit d4b36f7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,4 @@ jobs:
composer install --no-progress --prefer-dist --optimize-autoloader
- name: Psalm
run: psalm --output-format=github
run: vendor/bin/psalm.phar --output-format=github
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ phpstan:

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

.PHONY: test
test:
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"phpunit/phpunit": "^8.2 || ^9.2",
"mockery/mockery": "^1.2",
"phpstan/phpstan": "^0.12",
"ext-simplexml": "*"
"ext-simplexml": "*",
"psalm/phar": "^4.15"
},
"extra": {
"branch-alias": {
Expand Down
6 changes: 0 additions & 6 deletions phive.xml

This file was deleted.

5 changes: 5 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@
<LessSpecificReturnType errorLevel="info" />

<MissingDependency errorLevel="info" />
<MixedArgumentTypeCoercion>
<errorLevel type="suppress">
<file name="src/phpDocumentor/GraphViz/Graph.php" />
</errorLevel>
</MixedArgumentTypeCoercion>
</issueHandlers>
</psalm>

0 comments on commit d4b36f7

Please sign in to comment.