composer global require --dev phpstan/phpstan ^0.12 vimeo/psalm ^3.11
/home/travis/.travis/functions: line 109: /home/travis/.composer/vendor/bin/phpstan: No such file or directory
This works fine when I try it with composer 1 or local installation, it only doesn’t work with composer 2 in Travis CI. Note that I am trying to clear the cache.