git clone https://github.com/veewee/pipe-plugin.git
composer install
The plugin validates if the types inside the stages of the pipe combinator line up. It also validates the amount of arguments!
./vendor/bin/psalm --no-cache tests/invalid-stages.php
./vendor/bin/psalm --no-cache tests/argument-issues.php
See vimeo/psalm#7244 Currently, templated arguments are not being resolved in closures / callables For now, we fall back to the built-in types.
php tests/empty-pipe.php
php tests/empty-pipe2.php
./vendor/bin/psalm --no-cache tests/empty-pipe.php
./vendor/bin/psalm --no-cache tests/empty-pipe2.php
php ./vendor/bin/psalm --no-cache tests/functionlike.php