Skip to content

Skip #[AsDoctrineListener] in NoListenerWithoutContractRule - #358

Merged
TomasVotruba merged 1 commit into
mainfrom
skip-doctrine-listener-attribute
Oct 13, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
skip-doctrine-listener-attribute

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Doctrine listeners registered via #[AsDoctrineListener] attribute have a valid contract and should not be flagged.

#[AsDoctrineListener] also covers Doctrine ORM tool events like postGenerateSchema, which are not in the ORM/ODM method list, so such listeners were wrongly reported.

@TomasVotruba
TomasVotruba enabled auto-merge (squash) October 13, 2026 12:01
@TomasVotruba
TomasVotruba force-pushed the skip-doctrine-listener-attribute branch from 60b141d to 6a25e39 Compare October 13, 2026 12:01
@TomasVotruba
TomasVotruba merged commit 032b8cd into main Oct 13, 2026
9 checks passed
@TomasVotruba
TomasVotruba deleted the skip-doctrine-listener-attribute branch October 13, 2026 12:02
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.

1 participant