-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
chore: upgrade phpstan to v2 #821
Conversation
7101d86
to
7276356
Compare
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.
@blackshadev overall looks good, thank you! Just a few comments.
Nice! |
7276356
to
387e9d3
Compare
Pipeline fixed, newly introduced code from main had a new error in it, adding it to the baseline for now. |
Let's go! |
FYI @blackshadev @aidan-casey @brendt |
Thank you, @carlosas! Appreciate your continued work on the project! |
Thanks, created an MR to re-add it #873 |
What
Why not wait?
Well , as it stands, phpstan doesn't allot for property hooks, I tried a property hook in an interface and phpstan paniced to the point it became unusable. In my opinion, I rather have php 8.4 features, than the features added by phpat, which can be re-added when phpat does provide phpstan 2.0 support.
Why the baseline
I rather introduce phpstan 2.0 early and fix the issues from the baseline later, the alternative is my trying to clean up while others keep on piling new issues without them even knowing they did it (because phpstan 2 has become more strict)