Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot execute phpstan because of phpstan-shim #68

Open
kouinkouin opened this issue Jun 10, 2022 · 0 comments
Open

Cannot execute phpstan because of phpstan-shim #68

kouinkouin opened this issue Jun 10, 2022 · 0 comments

Comments

@kouinkouin
Copy link

Hi,

When I execute vendor/bin/phpstan analyse .:

$ php7.4 vendor/bin/phpstan analyse .

Thank you for using PHPStan!

With the release of PHPStan 0.12, the primary Composer package used by most users,
phpstan/phpstan, has switched to a PHAR file. It works the same way as phpstan-shim.
The need for a separate PHAR distribution has ceased.
Package phpstan/phpstan-shim is no longer needed.

You should upgrade to phpstan/phpstan 0.12 with the following steps:
1) In your composer.json, rewrite line with "phpstan/phpstan-shim"
   to "phpstan/phpstan": "^0.12".
2) Delete your composer.lock.
3) Delete vendor/phpstan directory.
4) Delete vendor/bin/phpstan and vendor/bin/phpstan.phar.
5) Run composer install.

If you have any problem upgrading, don't hesitate to describe your issue at:
https://github.com/phpstan/phpstan/issues/new/choose

I cannot remove this because it's in prestashop/php-dev-tools dependencies.

A way to update the dependency?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant