Skip to content
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

Compatibility to dependency php parser v5 #1417

Merged
merged 2 commits into from Jan 23, 2024

Conversation

drieschel
Copy link
Contributor

@drieschel drieschel commented Jan 8, 2024

This PR adds compatibility for dependency nikic/php-parser v5.

Not sure if it works without additional changes, lets see if the tests will succeed.

Edit: Looks like a new major (or at least minor) version is required in order to make it compatible with v5, because v4 will not be compatible anymore.

Edit2: I did some refactoring and now it is working with v4 and v5.

@drieschel drieschel changed the title Allow php parser 5 Bump php parser dependency Jan 8, 2024
@drieschel drieschel force-pushed the allow_php_parser_5 branch 2 times, most recently from 3762524 to 790945d Compare January 10, 2024 11:18
@drieschel drieschel changed the title Bump php parser dependency Add compatiblity for php parser dependency v5 Jan 10, 2024
@drieschel drieschel changed the title Add compatiblity for php parser dependency v5 Compatiblity to php parser dependency v5 Jan 10, 2024
@drieschel drieschel changed the title Compatiblity to php parser dependency v5 Compatibility to dependency php parser v5 Jan 10, 2024
Copy link
Member

@weaverryan weaverryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fantastic! Thank you for taking on this important chore - huge help!

src/Util/ClassSourceManipulator.php Show resolved Hide resolved
Copy link
Collaborator

@jrushlow jrushlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @drieschel!

remaining CI failures fixed in #1419

@jrushlow jrushlow added the Feature New Feature label Jan 23, 2024
@jrushlow jrushlow merged commit b37c299 into symfony:main Jan 23, 2024
5 of 7 checks passed
@drieschel drieschel deleted the allow_php_parser_5 branch January 25, 2024 09:13
@derrabus
Copy link
Member

derrabus commented Feb 1, 2024

@weaverryan Can we please release this change? 🙏🏻

@jrushlow jrushlow mentioned this pull request Feb 1, 2024
@jrushlow
Copy link
Collaborator

jrushlow commented Feb 1, 2024

@weaverryan Can we please release this change? 🙏🏻

done

@derrabus
Copy link
Member

derrabus commented Feb 1, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants