Last active
December 10, 2023 10:11
-
-
Save fedir/b2cfbbee7ed13f26d916391b1004a197 to your computer and use it in GitHub Desktop.
phpstan install globally as phar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -O phpstan.phar https://github.com/phpstan/phpstan/raw/HEAD/phpstan.phar | |
chmod a+x phpstan.phar | |
sudo mv phpstan.phar /usr/local/bin/phpstan | |
phpstan |
replace first command to wget -O phpstan.phar https://github.com/phpstan/phpstan/raw/master/phpstan.phar
to install the latest phpstan
it is now wget -O phpstan.phar https://github.com/phpstan/phpstan/raw/HEAD/phpstan.phar
Should be changed for PHP 8 to
wget -O phpstan.phar https://github.com/phpstan/phpstan/raw/HEAD/phpstan.phar
chmod a+x phpstan.phar
sudo mv phpstan.phar /usr/local/bin/phpstan
phpstan
Updated 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simply, replace the
.phar
file path with the folowing one:wget -O phpstan.phar https://github.com/phpstan/phpstan-shim/raw/master/phpstan.phar
and you should be good :)