Skip to content

[symfony] Skip Symfony\Component\Mailer\Transport in PreferInterfaceInConstructorRule - #320

Merged
TomasVotruba merged 1 commit into
mainfrom
skip-mailer-transport-prefer-interface
Sep 24, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
skip-mailer-transport-prefer-interface

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Skip Symfony\Component\Mailer\Transport in symplify.preferInterfaceInConstructor - it's a factory class, not a service to be replaced by an interface.

  • add SymfonyClass::MAILER_TRANSPORT + SKIPPED_CLASSES in the rule
  • add Mailer stubs + SkipMailerTransport fixture

@TomasVotruba
TomasVotruba merged commit c6a60f1 into main Sep 24, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the skip-mailer-transport-prefer-interface branch September 24, 2026 21:33
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