Skip to content

Type hint RectorStyle instead of SymfonyStyle in services - #9030

Merged
TomasVotruba merged 1 commit into
mainfrom
rector-style-type-hints
Nov 23, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
rector-style-type-hints

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Split out of #8787 - the part that does not need entropy.

  • Services and commands depend on Rector\Console\Style\RectorStyle instead of SymfonyStyle, properties renamed $symfonyStyle -> $rectorStyle.
  • Container registers RectorStyle singleton; SymfonyStyle stays bound to the same instance for extensions that still inject it.
  • Tests construct RectorStyle and set normal verbosity, as RectorStyle is quiet under PHPUnit.

The later entropy swap then only changes RectorStyle internals, not its consumers.

Split out of #8787. Services depend on RectorStyle, registered in the container;
SymfonyStyle stays bound to the same instance for extensions.
@TomasVotruba
TomasVotruba merged commit cbe736a into main Nov 23, 2026
51 checks passed
@TomasVotruba
TomasVotruba deleted the rector-style-type-hints branch November 23, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant