Closed boesing closed 3 years ago
Small correction:
The file should be named psalm.xml.dist
, not .psalm.xml.dist
You need to run
composer require --dev vimeo/psalm
composer require --dev psalm/plugin-phpunit
vendor/bin/psalm-plugin enable psalm/plugin-phpunit
@boesing
.gitattributes
too?@gennadiylitvinyuk Yes, if a baseline is needed, it should be part of the source (otherwise, the psalm.xml.dist
would be invalid.
Sadly, I've created plenty of issues with the same template and thus all issues contain falsy information. So you are absolutely right with these changes.
TBH: I havent thought about the .gitattributes
. I wont require a change in there but you are welcome if you want to do so.
Feature Request
Summary
As decided during the Technical-Steering-Committee Meeting on August 3rd, 2020, Laminas wants to implement vimeo/psalm in all packages.
Implementing psalm is quite easy.
Required
.psalm.xml.dist
in the project root$ composer require vimeo/psalm
$ vendor/bin/psalm --set-baseline=psalm-baseline.xml
static-analysis
with the commandpsalm --shepherd --stats
script:
in.travis.yml
:- if [[ $TEST_COVERAGE == 'true' ]]; then composer static-analysis ; fi
phpstan.neon.dist
,.travis.yml
entry,composer.json
require-dev
andscripts
)Optional