-
Notifications
You must be signed in to change notification settings - Fork 132
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
Fix support of Enum stubs from PHPStorm #1445
Conversation
@VincentLanglet are the stubs in here already bumped here? We bump them regularly, but it needs adjustments in |
No, those stubs are on master branch and but no tags are created yes. Should I target the latest commit ? |
For trying them out: yes. For merging this (once fixed): needs to be a tagged version. |
Done. I also tried to add a PHP 8.4 Ci (for testing purpose), because the error occured only on PHP 8.4 PHPStan ci. (cf https://github.com/phpstan/phpstan-src/actions/runs/10680283358/job/29601421334?pr=3393) (Not sure if there is an easy way to avoid waiting for workflow approval at every commit so I try to offer an easy-merge PR #1446) |
@VincentLanglet You can remove the PHP 8.4 changes and use random extension for unit tests. |
812e2a8
to
6fc0e1d
Compare
38a613c
to
b271493
Compare
65706f6
to
9de2fab
Compare
I reworked the PR @Ocramius, Since I dunno when a new tag of PHPStorm stubs will be released,
This way it should be merge-able now, without waiting for a PHPStorm stub new tag. Also, I discovered you'll need a fix for SplObjectStorage in PHP 8.4 so I opened another PR #1448. |
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.
Thanks @VincentLanglet!
Hi @Ocramius,
An (old) assert was added by @kukulich in 933dcb9
This one is not true anymore, cause PHPStorm stubs use
@since
on Enum likeJetBrains/phpstorm-stubs@2630c46#diff-11cfa64a565c311363b652c7494df2be636c9934afac14510bdd70e50d7044ceR6
Such error was discovered by the PHPStan CI which run on PHP 8.4 https://github.com/phpstan/phpstan-src/actions/runs/10680283358/job/29601421334?pr=3393 ; but I'm unsure how much work it would require so far to have a full Ci running on PHP 8.4. I can try in another PR if you want to.