Skip to content

Commit

Permalink
fixup! add warning about deprecated Symfony/Twig/PHPUnit level sets
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jan 17, 2024
1 parent 053147d commit 8ccf675
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Config/RectorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@ public function sets(array $sets): void

// display only on main command run, skip spamming in workers
$commandArguments = $_SERVER['argv'];
if (!in_array('worker', $commandArguments)) {
if (! in_array('worker', $commandArguments)) {
// show warning, to avoid confusion
$symfonyStyle = new SymfonyStyle(new ArrayInput([]), new ConsoleOutput());
$symfonyStyle->warning("The Symfony/Twig/PHPUnit level sets are deprecated since Rector 0.19.2, because of heavy performance load and conflicting overrides. Instead, use latest major set instead.\n\nFor more, see https://getrector.com/blog/5-common-mistakes-in-rector-config-and-how-to-avoid-them");
$symfonyStyle->warning(
"The Symfony/Twig/PHPUnit level sets are deprecated since Rector 0.19.2, because of heavy performance load and conflicting overrides. Instead, use latest major set instead.\n\nFor more, see https://getrector.com/blog/5-common-mistakes-in-rector-config-and-how-to-avoid-them"
);

break;
}
Expand Down

0 comments on commit 8ccf675

Please sign in to comment.