Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Cannot execute phpstan because of phpstan-shim

Đang mở
#68 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
php
Lĩnh vực
tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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?

Ngôn ngữ chính
PHP
Star
37
Fork
20
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PrestaShop/php-dev-tools

Tất cả issue của PrestaShop/php-dev-tools

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.