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 with Annotations 2 #296

Merged
merged 2 commits into from Dec 23, 2022
Merged

Conversation

derrabus
Copy link
Contributor

Running this plugin having Doctrine Annotations 2 installed currently results in a crash: https://github.com/doctrine/DoctrineBundle/actions/runs/3742592139/jobs/6353730157

The call to AnnotationRegistry::registerLoader() is safeguarded with a method_exists() call now. Alternatively, we could also declare a conflict with Annotations < 1.10 and remove the call entirely.

@derrabus
Copy link
Contributor Author

The PHP-CS-Fixer failure looks unrelated. But I might need some help getting the high-deps builds green.

@weirdan
Copy link
Member

weirdan commented Dec 21, 2022

But I might need some help getting the high-deps builds green.

I think the only option currently is to suppress / baseline the UnusedPsalmSuppress issue. I started the discussion on the Psalm repo to see if anyone has any better ideas.

@weirdan weirdan requested a review from seferov December 23, 2022 04:11
Copy link
Member

@seferov seferov left a comment

Choose a reason for hiding this comment

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

Thank you!

@seferov seferov merged commit 6a1723f into psalm:4.x Dec 23, 2022
@derrabus derrabus deleted the bugfix/annotations-2 branch December 23, 2022 06:09
seferov pushed a commit that referenced this pull request Dec 23, 2022
* Compatibility with Annotations 2

* Suppress UnusedPsalmSuppress

Co-authored-by: Bruce Weirdan <weirdan@gmail.com>
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.

None yet

3 participants