Cannot execute phpstan because of phpstan-shim
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
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PrestaShop/php-dev-tools
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
PrestaShop/php-dev-tools#58 · 1 bình luận · 2 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
PrestaShop/php-dev-tools#55 ·
-
Whitespace after file headerĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 50/100
PrestaShop/php-dev-tools#45 · 2 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
PrestaShop/php-dev-tools#38 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
PrestaShop/php-dev-tools#26 ·
Tất cả issue của PrestaShop/php-dev-tools
Issue tương tự
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Перевод устарел
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
bug
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 76/100
m3ue/m3u-editor#1604 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
femiwiki/docker-mediawiki#1497 ·
Maintainer thường phản hồi trong vòng 1 ngày