-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Upgraded phpstan dependency to 1.1 #34555
Upgraded phpstan dependency to 1.1 #34555
Conversation
Hi @hostep. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@xmav can we add it to the platform health? |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
3 similar comments
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Hi @ihor-sviziev, thank you for the review.
|
Hi @ihor-sviziev |
(please keep target branch to 2.4-develop) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @hostep,
Could you update phpstan to latest available version (1.1.1 now)?
a8c0133
to
b2e0b1f
Compare
Done! On my local machine, I do get this error after running that command mentioned above twice, the first time it works fine though, which is a bit weird?
Entire stacktrace:
|
@magento run all tests |
I have fixed the merge-conflicts here |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Unit Tests with env PHP 8.1 with edition CE without extensions magento-commerce/inventory, magento-commerce/adobe-stock-integration, magento-commerce/security-package, magento-commerce/magento2-page-builder, magento-commerce/adobe-ims |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
works fine with a big change set. Tested on 2.4(2.4.3)<=>2.4-develop (2.4...2.4-develop) |
@magento import code to Magento-trigger/magento2ce |
@xmav an error occurred during the Pull Request import. |
@magento import code to Magento-trigger/magento2ce |
@xmav the branch with the code is successfully imported into the |
Hi @hostep @andrewbess Thanks! |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Functional Tests issue unrelated to changes in this PR. |
@magento import code to Magento-trigger/magento2ce |
@xmav the branch with the code is successfully imported into the |
Why? Have you read the backwards compatibility promise for developers and for users?
|
Hi @hostep |
Ok thanks, but the problem is that I'll have to send in yet another PR within a week or 2 when version 1.2.0 gets released, so this will be a maintenance nightmare if we want to stay close to the latest version of phpstan I'm afraid. |
even if we will use loose constraint someone should do composer update and push updated composer.lock file to use new version. |
@xmav: Exactly, and that's a good thing! So this would allow core Magento to only update phpstan when you want to, but will allow the users of the Magento software to still update phpstan to newer versions, because the users might want to stay closer to the latest version to benefit from new features and bugfixes. |
@xmav, As predicted, phpstan 1.2.0 was released today: https://github.com/phpstan/phpstan/releases/tag/1.2.0 Since it contains support for new PHP 8.1 features, I believe we should probably upgrade it again over here ... (and maybe this time use Thanks! |
Description (*)
PHPstan version 1.0 got released earlier this week: https://phpstan.org/blog/phpstan-1-0-released
This PR changes the dependency constraints for phpstan.
This also changes the deprecated
excludes_analyse
config toexcludePaths
.Related Pull Requests
https://github.com/magento/partners-magento2ee/pull/650
Fixed Issues (if relevant)
phpstan/phpstan
composer dependency to v1.x #34604Manual testing scenarios (*)
(this command comes from #30581 (comment), and also see: https://github.com/magento/magento2/blob/2.4-develop/dev/tests/static/framework/Magento/TestFramework/CodingStandard/Tool/PhpStan.php#L81-L92)
Questions or comments
Should we still allow version 0.12.x of phpstan to get installed as well, or is that not necessary?
Contribution checklist (*)