Closed boesing closed 1 year ago
@boesing composer require vimeo/psalm
would add it as a runtime dependency. Shouldn't this be composer require --dev vimeo/psalm
In general I'd even prefer composer global require vimeo/psalm
locally and in CI to not mess with the dependency tree. Unlike PHPstan, psalm is not distributed with isolated dependencies.
@tux-rampage yes, it should be --dev
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
in the project root$ composer require --dev 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