Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Cannot execute phpstan because of phpstan-shim

Aperta
#68 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
tooling

Direzione di ricerca

Start by inspecting composer.json and the php-dev-tools dependency definitions to find where phpstan/phpstan-shim is required. Run vendor/bin/phpstan analyse . before and after the dependency update; done means the command runs without the shim migration message.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
PHP
Stelle
37
Fork
20
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PrestaShop/php-dev-tools

Tutte le issue di PrestaShop/php-dev-tools

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.