Skip to content

[symfony] skip NoFindTaggedServiceIdsCallRule in test classes - #309

Merged
TomasVotruba merged 1 commit into
mainfrom
skip-find-tagged-service-ids-in-tests
Sep 23, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
skip-find-tagged-service-ids-in-tests

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

The findTaggedServiceIds() call is legitimately used in test classes to assert service registration. Skip the rule there via TestClassDetector, matching the existing convention used by NoGetRepositoryOutsideServiceRule.

Covered with a fixture that reports in a compiler pass and one that is skipped in a test context.

@TomasVotruba
TomasVotruba merged commit 7831faa into main Sep 23, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the skip-find-tagged-service-ids-in-tests branch September 23, 2026 12:20
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