Skip to content

Remove hard dependency on doctrine/annotations#198

Closed
wouterj wants to merge 1 commit intodoctrine:2.2.xfrom
wouterj:remove-hard-annotations-dependency
Closed

Remove hard dependency on doctrine/annotations#198
wouterj wants to merge 1 commit intodoctrine:2.2.xfrom
wouterj:remove-hard-annotations-dependency

Conversation

@wouterj
Copy link

@wouterj wouterj commented Jun 26, 2021

It would be great to be able to remove doctrine/annotations in projects that fully migrated to attributes. While testing this, we discovered that this package has a hard dependency on it (and thus, it cannot be removed).

The diff of this PR feels a bit weird: I couldn't find any dependency on doctrine/annotations in this project (other than the tests).

The AnnotationDriver does have a PHPdoc-only typehint to Doctrine\Common\Annotations\Reader. The doctrine/orm AttributeDriver extends this class, but passes a custom AttributeReader that doesn't extend from the annotations reader. So I guess that's a reason why the typehint isn't a PHP typehint?

@javiereguiluz
Copy link

Thanks Wouter! ... but this change was already merged in #197.

@wouterj
Copy link
Author

wouterj commented Jun 27, 2021

Oh, sorry! Thanks for letting me know!

@wouterj wouterj closed this Jun 27, 2021
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