Skip to content

Support phpstan/phpdoc-parser v1 along with v2#1517

Merged
gennadigennadigennadi merged 1 commit into
deptrac:4.xfrom
maxm86545:phpdoc-parser-v1
Dec 8, 2025
Merged

Support phpstan/phpdoc-parser v1 along with v2#1517
gennadigennadigennadi merged 1 commit into
deptrac:4.xfrom
maxm86545:phpdoc-parser-v1

Conversation

@maxm86545

Copy link
Copy Markdown
Contributor

Support for v1 was removed #1494.

Because deptrac is a utility tool and is not supposed to introduce compatibility issues with application packages, I suggest temporarily retaining support for phpstan/phpdoc-parser v1. This approach was taken in Symfony, and I believe it is a good solution symfony/type-info@51535dd

Partially resolves #1505.

@patrickkusebauch patrickkusebauch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I would recommend to pull this logic into a utility function somewhere, so that you don't have to repeat yourself so many times, as the code is the same in all instances.

Frankly, this should have been done already even before your change.

@gennadigennadigennadi gennadigennadigennadi merged commit 3058cb1 into deptrac:4.x Dec 8, 2025
19 of 20 checks passed
@maxm86545 maxm86545 deleted the phpdoc-parser-v1 branch December 8, 2025 10:41
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.

There is no shim version for 4.0.0 and 4.1.0

3 participants