Updated Rector to commit f9f4217a6d0cf0a13f17af52a4c4f52e246fbe5b

f9f4217a6d [e2e] [printer] Fix short open tag mixed php+html cause surplus <?php  (#3395)
This commit is contained in:
Tomas Votruba 2023-02-21 11:29:31 +00:00
parent d7f9660bce
commit cf3b24e388
8 changed files with 18 additions and 21 deletions

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInita3411a1a0d8be187282338b62bd8e61b::getLoader();
return ComposerAutoloaderInitcec6f073043cb339d18873790ff275f1::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInita3411a1a0d8be187282338b62bd8e61b
class ComposerAutoloaderInitcec6f073043cb339d18873790ff275f1
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInita3411a1a0d8be187282338b62bd8e61b
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInita3411a1a0d8be187282338b62bd8e61b', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitcec6f073043cb339d18873790ff275f1', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInita3411a1a0d8be187282338b62bd8e61b', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitcec6f073043cb339d18873790ff275f1', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInita3411a1a0d8be187282338b62bd8e61b::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitcec6f073043cb339d18873790ff275f1::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInita3411a1a0d8be187282338b62bd8e61b::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInitcec6f073043cb339d18873790ff275f1::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInita3411a1a0d8be187282338b62bd8e61b
class ComposerStaticInitcec6f073043cb339d18873790ff275f1
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3126,9 +3126,9 @@ class ComposerStaticInita3411a1a0d8be187282338b62bd8e61b
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInita3411a1a0d8be187282338b62bd8e61b::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInita3411a1a0d8be187282338b62bd8e61b::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInita3411a1a0d8be187282338b62bd8e61b::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitcec6f073043cb339d18873790ff275f1::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitcec6f073043cb339d18873790ff275f1::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitcec6f073043cb339d18873790ff275f1::$classMap;
}, null, ClassLoader::class);
}

View File

@ -2125,12 +2125,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "3c56d7b4a717e405313d28e63113f4c9b59cbb71"
"reference": "3cebcd90e9b356a860801742616f64d5858a4496"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/3c56d7b4a717e405313d28e63113f4c9b59cbb71",
"reference": "3c56d7b4a717e405313d28e63113f4c9b59cbb71",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/3cebcd90e9b356a860801742616f64d5858a4496",
"reference": "3cebcd90e9b356a860801742616f64d5858a4496",
"shasum": ""
},
"require": {
@ -2160,7 +2160,7 @@
"tomasvotruba\/type-coverage": "^0.0.9",
"tomasvotruba\/unused-public": "^0.0.34"
},
"time": "2023-02-17T19:28:57+00:00",
"time": "2023-02-21T11:24:24+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
*/
final class GeneratedConfig
{
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main ea9cf46'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main fb0167c'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 13e842b'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3c56d7b'));
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main ea9cf46'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main fb0167c'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 13e842b'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3cebcd9'));
private function __construct()
{
}

View File

@ -9,10 +9,8 @@ use PHPStan\Type\FloatType;
use PHPStan\Type\IntegerType;
use PHPStan\Type\IterableType;
use PHPStan\Type\MixedType;
use PHPStan\Type\NullType;
use PHPStan\Type\ObjectWithoutClassType;
use PHPStan\Type\StringType;
use PHPStan\Type\UnionType;
use Rector\Config\RectorConfig;
use Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeDeclarationRector;
use Rector\TypeDeclaration\ValueObject\AddParamTypeDeclaration;
@ -20,7 +18,6 @@ use Rector\TypeDeclaration\ValueObject\AddParamTypeDeclaration;
return static function (RectorConfig $rectorConfig) : void {
$arrayType = new ArrayType(new MixedType(), new MixedType());
$iterableType = new IterableType(new MixedType(), new MixedType());
$nullableStringType = new UnionType([new StringType(), new NullType()]);
$rectorConfig->ruleWithConfiguration(AddParamTypeDeclarationRector::class, [
// @see https://github.com/symfony/symfony/issues/32179
new AddParamTypeDeclaration('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface', 'addListener', 0, new StringType()),
@ -83,7 +80,7 @@ return static function (RectorConfig $rectorConfig) : void {
new AddParamTypeDeclaration('Symfony\\Component\\Process\\Process', 'updateStatus', 0, new BooleanType()),
new AddParamTypeDeclaration('Symfony\\Component\\EventDispatcher\\EventDispatcher', 'dispatch', 0, new ObjectWithoutClassType()),
new AddParamTypeDeclaration('Symfony\\Contracts\\Translation\\TranslatorInterface', 'setLocale', 0, new StringType()),
new AddParamTypeDeclaration('Symfony\\Contracts\\Translation\\TranslatorInterface', 'trans', 0, $nullableStringType),
new AddParamTypeDeclaration('Symfony\\Contracts\\Translation\\TranslatorInterface', 'trans', 0, new StringType()),
new AddParamTypeDeclaration('Symfony\\Contracts\\Translation\\TranslatorInterface', 'trans', 2, new StringType()),
new AddParamTypeDeclaration('Symfony\\Contracts\\Translation\\TranslatorInterface', 'trans', 3, new StringType()),
new AddParamTypeDeclaration('Symfony\\Component\\Form\\AbstractExtension', 'getType', 0, new StringType()),

View File

@ -25,7 +25,7 @@ return static function (RectorConfig $rectorConfig) : void {
// @see https://github.com/symfony/symfony/pull/39484
'Symfony\\Contracts\\HttpClient\\HttpClientInterface\\RemoteJsonManifestVersionStrategy' => 'Symfony\\Component\\Asset\\VersionStrategy\\JsonManifestVersionStrategy',
]);
$rectorConfig->ruleWithConfiguration(AddParamTypeDeclarationRector::class, [new AddParamTypeDeclaration('Symfony\\Component\\Config\\Loader\\LoaderInterface', 'load', 0, new MixedType()), new AddParamTypeDeclaration('Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait', 'configureRoutes', 0, new ObjectType('Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator'))]);
$rectorConfig->ruleWithConfiguration(AddParamTypeDeclarationRector::class, [new AddParamTypeDeclaration('Symfony\\Component\\Config\\Loader\\LoaderInterface', 'load', 0, new MixedType(\true)), new AddParamTypeDeclaration('Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait', 'configureRoutes', 0, new ObjectType('Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator'))]);
$rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [
// @see https://github.com/symfony/symfony/pull/40403
new MethodCallRename('Symfony\\Bridge\\Doctrine\\Security\\User\\UserLoaderInterface', 'loadUserByUsername', 'loadUserByIdentifier'),