-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Add versions to hot-patched symbols #425
Conversation
40e681e
to
76e3643
Compare
387fb6b
to
1e26402
Compare
It is related to nikic/PHP-Parser#715. Using a none emulative lexer would fix this bug. Specs needs somehow to be skipped on none supported php versions. Any ideas? |
1e26402
to
1214bae
Compare
I think it would make sense to be able to declare the min PHP version required for a given spec or spec file |
ccaf406
to
ef082a6
Compare
I added a |
ef082a6
to
02719a9
Compare
Ready for review. In #420 Sebastian Bergmann has proved it is working. |
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 a lot! This is a big improvement 👏
Keep in mind that until we change the phpstorm stubs generated map to record the version used there, we are still missing the version for all of those symbols (the one you did is only the "hot patched" symbols). I'm saying this just as a note to be aware, having this is already quite quite helpful
Yes, I had this in mind. But unfortunately |
60219aa
to
25f6e56
Compare
25f6e56
to
ec4cf55
Compare
Applied proposals, CS and resolved conflicts. Ready for merge :-) A follow up task would be generating a map of classes, function and constants with the related php version they have been introduced. (or similar) |
Cool, thanks a lot for the work @smoench! |
fixes #420