Skip to content

Add compatibility with phpstan/phpdoc-parser v2 #442

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

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

EmilMassey
Copy link
Contributor

@EmilMassey EmilMassey commented Jan 2, 2025

This PR adds compatibility for phpstan/phpdoc-parser v2 while maintaining support for v1.

Currently check are failing due to invalid code style: see #443 for the fix.

@micheleorselli
Copy link
Member

The build pipeline is fixed so by rebasing to master you should be able to get all the checks passing.
Apart from that, what are the advantages of using version 2 of the parser? Consider we decided to drop php 7 support so we could just support version 2 and that's it. cc @AlessandroMinoccheri

@micheleorselli
Copy link
Member

@EmilMassey I guess we can just drop the support to version 1, would you mind updating the PR? Thank you!

@EmilMassey EmilMassey force-pushed the phpstan-parser-allow-v2 branch from 1e59286 to 7931644 Compare February 18, 2025 06:39
@EmilMassey EmilMassey force-pushed the phpstan-parser-allow-v2 branch from 7931644 to 32a5109 Compare February 18, 2025 07:02
@EmilMassey
Copy link
Contributor Author

While I don't believe any new features in v2 are necessary for this library, updating the dependency allows arkitect to be installed in codebases that need v2 for various reasons. That's the main reason for my PR. I updated the PR and dropped support for v1.

@micheleorselli micheleorselli merged commit 766b5e2 into phparkitect:main Feb 18, 2025
16 checks passed
@micheleorselli
Copy link
Member

thanks @EmilMassey!

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

Successfully merging this pull request may close these issues.

2 participants