laminas / laminas-cli

Console command runner, exposing commands written in Laminas MVC and Mezzio components and applications
https://docs.laminas.dev/laminas-cli
BSD 3-Clause "New" or "Revised" License
55 stars 22 forks source link

Update `vimeo/psalm` to 4.10 and add `psalm/plugin-phpunit` #80

Closed boesing closed 2 years ago

boesing commented 2 years ago
Q A
QA yes

Description

This bumps psalm to its latest version while adding psalm/plugin-phpunit.

This also changes some Symfony\Component\Console\Question\Question#setValidator callables to static callables for minor speed improvements in newer PHP versions.

boesing commented 2 years ago
ERROR: InvalidDocblock - src/Input/AbstractParamAwareInput.php:329:13 - Templated closures are not supported (see https://psalm.dev/008)
            /**
             * @psalm-template ValueType of mixed
             * @psalm-param callable(ValueType): bool $validator
             * @psalm-param ValueType $value
             */
            static function ($value) use ($originalValidator) {