Updated Rector to commit 6b11f63e63fc75ea80a4ee609f3e175863305b6f

6b11f63e63 [Configuration] Use TwigSetProvider from rector-symfony (#5992)
This commit is contained in:
Tomas Votruba 2024-06-21 00:29:11 +00:00
parent a75c607420
commit 1951a60c4f
6 changed files with 5 additions and 33 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'cecb60da20dfbe57e70ac43d606eba711aed4e8c';
public const PACKAGE_VERSION = '6b11f63e63fc75ea80a4ee609f3e175863305b6f';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-06-21 00:15:57';
public const RELEASE_DATE = '2024-06-21 02:25:42';
/**
* @var int
*/

View File

@ -13,7 +13,6 @@ use Rector\Contract\Rector\ConfigurableRectorInterface;
use Rector\Contract\Rector\RectorInterface;
use Rector\DependencyInjection\Laravel\ContainerMemento;
use Rector\Exception\ShouldNotHappenException;
use Rector\Set\SetProvider\TwigSetProvider;
use Rector\Skipper\SkipCriteriaResolver\SkippedClassResolver;
use Rector\Validation\RectorConfigValidator;
use Rector\ValueObject\PhpVersion;
@ -38,9 +37,7 @@ final class RectorConfig extends Container
private $autotagInterfaces = [Command::class];
public static function configure() : RectorConfigBuilder
{
$rectorConfigBuilder = new RectorConfigBuilder();
$rectorConfigBuilder->withSetProviders([new TwigSetProvider()]);
return $rectorConfigBuilder;
return new RectorConfigBuilder();
}
/**
* @param string[] $paths

View File

@ -26,6 +26,7 @@ use Rector\Set\ValueObject\SetList;
use Rector\Symfony\Set\FOSRestSetList;
use Rector\Symfony\Set\JMSSetList;
use Rector\Symfony\Set\SensiolabsSetList;
use Rector\Symfony\Set\SetProvider\TwigSetProvider;
use Rector\Symfony\Set\SymfonySetList;
use Rector\ValueObject\PhpVersion;
use RectorPrefix202406\Symfony\Component\Finder\Finder;
@ -539,6 +540,7 @@ final class RectorConfigBuilder
// @experimental 2024-06
if ($twig) {
$this->setGroups[] = SetGroup::TWIG;
$this->withSetProviders([new TwigSetProvider()]);
}
return $this;
}

View File

@ -1,25 +0,0 @@
<?php
declare (strict_types=1);
namespace Rector\Set\SetProvider;
use Rector\Set\Contract\SetInterface;
use Rector\Set\Contract\SetProviderInterface;
use Rector\Set\Enum\SetGroup;
use Rector\Set\ValueObject\ComposerTriggeredSet;
use Rector\Symfony\Set\TwigSetList;
/**
* Temporary location, move to rector-symfony package once this is merged
* @experimental 2024-06
*/
final class TwigSetProvider implements SetProviderInterface
{
/**
* @return SetInterface[]
*/
public function provide() : array
{
// @todo temporary name to test, these will be located in rector-symfony, rector-doctrine, rector-phpunit packages
return [new ComposerTriggeredSet(SetGroup::TWIG, 'twig/twig', '1.12', TwigSetList::TWIG_112)];
}
}

View File

@ -2069,7 +2069,6 @@ return array(
'Rector\\Set\\Contract\\SetProviderInterface' => $baseDir . '/src/Set/Contract/SetProviderInterface.php',
'Rector\\Set\\Enum\\SetGroup' => $baseDir . '/src/Set/Enum/SetGroup.php',
'Rector\\Set\\SetManager' => $baseDir . '/src/Set/SetManager.php',
'Rector\\Set\\SetProvider\\TwigSetProvider' => $baseDir . '/src/Set/SetProvider/TwigSetProvider.php',
'Rector\\Set\\ValueObject\\ComposerTriggeredSet' => $baseDir . '/src/Set/ValueObject/ComposerTriggeredSet.php',
'Rector\\Set\\ValueObject\\DowngradeLevelSetList' => $vendorDir . '/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeLevelSetList.php',
'Rector\\Set\\ValueObject\\DowngradeSetList' => $vendorDir . '/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php',

View File

@ -2288,7 +2288,6 @@ class ComposerStaticInitc6bcdb63495c7f1cc77baa21ee134e8a
'Rector\\Set\\Contract\\SetProviderInterface' => __DIR__ . '/../..' . '/src/Set/Contract/SetProviderInterface.php',
'Rector\\Set\\Enum\\SetGroup' => __DIR__ . '/../..' . '/src/Set/Enum/SetGroup.php',
'Rector\\Set\\SetManager' => __DIR__ . '/../..' . '/src/Set/SetManager.php',
'Rector\\Set\\SetProvider\\TwigSetProvider' => __DIR__ . '/../..' . '/src/Set/SetProvider/TwigSetProvider.php',
'Rector\\Set\\ValueObject\\ComposerTriggeredSet' => __DIR__ . '/../..' . '/src/Set/ValueObject/ComposerTriggeredSet.php',
'Rector\\Set\\ValueObject\\DowngradeLevelSetList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeLevelSetList.php',
'Rector\\Set\\ValueObject\\DowngradeSetList' => __DIR__ . '/..' . '/rector/rector-downgrade-php/src/Set/ValueObject/DowngradeSetList.php',