mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 00:40:52 +00:00
Updated Rector to commit 863a5ed69a150aed2c87038ef35421ee1626abd3
863a5ed69a
[DX] Depreate heavy and conflicting Symfony/Twig/PHPUnit level sets (#5477)
This commit is contained in:
parent
ee75e1d6c7
commit
d67d5653a7
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '985d5ea5109e1282f35370006ad7ac26df7789de';
|
||||
public const PACKAGE_VERSION = '863a5ed69a150aed2c87038ef35421ee1626abd3';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-01-17 15:36:14';
|
||||
public const RELEASE_DATE = '2024-01-17 18:37:42';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
|
@ -17,6 +17,9 @@ use Rector\Validation\RectorConfigValidator;
|
|||
use Rector\ValueObject\PhpVersion;
|
||||
use Rector\ValueObject\PolyfillPackage;
|
||||
use RectorPrefix202401\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix202401\Symfony\Component\Console\Input\ArrayInput;
|
||||
use RectorPrefix202401\Symfony\Component\Console\Output\ConsoleOutput;
|
||||
use RectorPrefix202401\Symfony\Component\Console\Style\SymfonyStyle;
|
||||
use RectorPrefix202401\Webmozart\Assert\Assert;
|
||||
/**
|
||||
* @api
|
||||
|
@ -56,6 +59,20 @@ final class RectorConfig extends Container
|
|||
Assert::fileExists($set);
|
||||
$this->import($set);
|
||||
}
|
||||
// notify about deprecated sets
|
||||
foreach ($sets as $set) {
|
||||
if (\strpos($set, 'deprecated-level-set') === \false) {
|
||||
continue;
|
||||
}
|
||||
// display only on main command run, skip spamming in workers
|
||||
$commandArguments = $_SERVER['argv'];
|
||||
if (!\in_array('worker', $commandArguments, \true)) {
|
||||
// show warning, to avoid confusion
|
||||
$symfonyStyle = new SymfonyStyle(new ArrayInput([]), new ConsoleOutput());
|
||||
$symfonyStyle->warning("The Symfony/Twig/PHPUnit level sets have been deprecated since Rector 0.19.2 due to heavy performance loads and conflicting overrides. Instead, please use the latest major set.\n\nFor more information, visit https://getrector.com/blog/5-common-mistakes-in-rector-config-and-how-to-avoid-them");
|
||||
break;
|
||||
}
|
||||
}
|
||||
// for cache invalidation in case of sets change
|
||||
SimpleParameterProvider::addParameter(Option::REGISTERED_RECTOR_SETS, $sets);
|
||||
}
|
||||
|
|
2
vendor/composer/installed.json
vendored
2
vendor/composer/installed.json
vendored
|
@ -1855,7 +1855,7 @@
|
|||
"description": "Rector upgrades rules for PHPUnit",
|
||||
"support": {
|
||||
"issues": "https:\/\/github.com\/rectorphp\/rector-phpunit\/issues",
|
||||
"source": "https:\/\/github.com\/rectorphp\/rector-phpunit\/tree\/main"
|
||||
"source": "https:\/\/github.com\/rectorphp\/rector-phpunit\/tree\/0.19.1"
|
||||
},
|
||||
"install-path": "..\/rector\/rector-phpunit"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user