mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
Updated Rector to commit 2be958b4e4db947c63777443eafb886274a5c7c7
2be958b4e4
[Core] Fix resolve scope handling when parent Node just re-printed (#3056)
This commit is contained in:
parent
c976b41d9f
commit
3495067553
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit4594c8e2703b501da961a76ccb4f8a22::getLoader();
|
||||
return ComposerAutoloaderInit1eea657efd12a3c39090bb64a356de82::getLoader();
|
||||
|
1
vendor/composer/autoload_classmap.php
vendored
1
vendor/composer/autoload_classmap.php
vendored
@ -2563,6 +2563,7 @@ return array(
|
||||
'Rector\\Symfony\\Rector\\StaticCall\\ParseFileRector' => $vendorDir . '/rector/rector-symfony/src/Rector/StaticCall/ParseFileRector.php',
|
||||
'Rector\\Symfony\\Rector\\StaticCall\\ProcessBuilderInstanceRector' => $vendorDir . '/rector/rector-symfony/src/Rector/StaticCall/ProcessBuilderInstanceRector.php',
|
||||
'Rector\\Symfony\\Rector\\StaticPropertyFetch\\KernelTestCaseContainerPropertyDeprecationRector' => $vendorDir . '/rector/rector-symfony/src/Rector/StaticPropertyFetch/KernelTestCaseContainerPropertyDeprecationRector.php',
|
||||
'Rector\\Symfony\\Set\\FOSRestSetList' => $vendorDir . '/rector/rector-symfony/src/Set/FOSRestSetList.php',
|
||||
'Rector\\Symfony\\Set\\JMSSetList' => $vendorDir . '/rector/rector-symfony/src/Set/JMSSetList.php',
|
||||
'Rector\\Symfony\\Set\\SensiolabsSetList' => $vendorDir . '/rector/rector-symfony/src/Set/SensiolabsSetList.php',
|
||||
'Rector\\Symfony\\Set\\SwiftmailerSetList' => $vendorDir . '/rector/rector-symfony/src/Set/SwiftmailerSetList.php',
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit4594c8e2703b501da961a76ccb4f8a22
|
||||
class ComposerAutoloaderInit1eea657efd12a3c39090bb64a356de82
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,19 +22,19 @@ class ComposerAutoloaderInit4594c8e2703b501da961a76ccb4f8a22
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit4594c8e2703b501da961a76ccb4f8a22', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit1eea657efd12a3c39090bb64a356de82', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit4594c8e2703b501da961a76ccb4f8a22', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit1eea657efd12a3c39090bb64a356de82', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit4594c8e2703b501da961a76ccb4f8a22::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit1eea657efd12a3c39090bb64a356de82::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit4594c8e2703b501da961a76ccb4f8a22::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit1eea657efd12a3c39090bb64a356de82::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire4594c8e2703b501da961a76ccb4f8a22($fileIdentifier, $file);
|
||||
composerRequire1eea657efd12a3c39090bb64a356de82($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -46,7 +46,7 @@ class ComposerAutoloaderInit4594c8e2703b501da961a76ccb4f8a22
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire4594c8e2703b501da961a76ccb4f8a22($fileIdentifier, $file)
|
||||
function composerRequire1eea657efd12a3c39090bb64a356de82($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
9
vendor/composer/autoload_static.php
vendored
9
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit4594c8e2703b501da961a76ccb4f8a22
|
||||
class ComposerStaticInit1eea657efd12a3c39090bb64a356de82
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -2813,6 +2813,7 @@ class ComposerStaticInit4594c8e2703b501da961a76ccb4f8a22
|
||||
'Rector\\Symfony\\Rector\\StaticCall\\ParseFileRector' => __DIR__ . '/..' . '/rector/rector-symfony/src/Rector/StaticCall/ParseFileRector.php',
|
||||
'Rector\\Symfony\\Rector\\StaticCall\\ProcessBuilderInstanceRector' => __DIR__ . '/..' . '/rector/rector-symfony/src/Rector/StaticCall/ProcessBuilderInstanceRector.php',
|
||||
'Rector\\Symfony\\Rector\\StaticPropertyFetch\\KernelTestCaseContainerPropertyDeprecationRector' => __DIR__ . '/..' . '/rector/rector-symfony/src/Rector/StaticPropertyFetch/KernelTestCaseContainerPropertyDeprecationRector.php',
|
||||
'Rector\\Symfony\\Set\\FOSRestSetList' => __DIR__ . '/..' . '/rector/rector-symfony/src/Set/FOSRestSetList.php',
|
||||
'Rector\\Symfony\\Set\\JMSSetList' => __DIR__ . '/..' . '/rector/rector-symfony/src/Set/JMSSetList.php',
|
||||
'Rector\\Symfony\\Set\\SensiolabsSetList' => __DIR__ . '/..' . '/rector/rector-symfony/src/Set/SensiolabsSetList.php',
|
||||
'Rector\\Symfony\\Set\\SwiftmailerSetList' => __DIR__ . '/..' . '/rector/rector-symfony/src/Set/SwiftmailerSetList.php',
|
||||
@ -3053,9 +3054,9 @@ class ComposerStaticInit4594c8e2703b501da961a76ccb4f8a22
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit4594c8e2703b501da961a76ccb4f8a22::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit4594c8e2703b501da961a76ccb4f8a22::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit4594c8e2703b501da961a76ccb4f8a22::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit1eea657efd12a3c39090bb64a356de82::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit1eea657efd12a3c39090bb64a356de82::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit1eea657efd12a3c39090bb64a356de82::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -2128,12 +2128,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
|
||||
"reference": "ae66bbcea9775815b263bfbfd587dd9fd5421106"
|
||||
"reference": "8b6330201a4254dbc222075637d145b2475a1079"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/ae66bbcea9775815b263bfbfd587dd9fd5421106",
|
||||
"reference": "ae66bbcea9775815b263bfbfd587dd9fd5421106",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/8b6330201a4254dbc222075637d145b2475a1079",
|
||||
"reference": "8b6330201a4254dbc222075637d145b2475a1079",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -2164,7 +2164,7 @@
|
||||
"symplify\/rule-doc-generator": "^11.1",
|
||||
"symplify\/vendor-patches": "^11.1"
|
||||
},
|
||||
"time": "2022-11-10T14:29:51+00:00",
|
||||
"time": "2022-11-12T17:52:04+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
@ -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 17bdb82'), '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 da1013f'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9c21f5f'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 294de0c'), '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 0a98dbb'), '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 ae66bbc'));
|
||||
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 17bdb82'), '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 da1013f'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9c21f5f'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 294de0c'), '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 0a98dbb'), '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 8b63302'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
36
vendor/rector/rector-symfony/config/sets/fosrest/annotations-to-attributes.php
vendored
Normal file
36
vendor/rector/rector-symfony/config/sets/fosrest/annotations-to-attributes.php
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202211;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
|
||||
use Rector\Php80\ValueObject\AnnotationToAttribute;
|
||||
return static function (RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->ruleWithConfiguration(AnnotationToAttributeRector::class, [
|
||||
// @see https://github.com/FriendsOfSymfony/FOSRestBundle/pull/2325
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Copy'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Delete'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Get'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Head'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Link'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Lock'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Mkcol'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Move'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Options'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Patch'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Post'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\PropFind'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\PropPatch'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Put'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Route'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Unlink'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\Unlock'),
|
||||
// @see https://github.com/FriendsOfSymfony/FOSRestBundle/pull/2326
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\View'),
|
||||
// @see https://github.com/FriendsOfSymfony/FOSRestBundle/pull/2327
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\FileParam'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\QueryParam'),
|
||||
new AnnotationToAttribute('FOS\\RestBundle\\Controller\\Annotations\\RequestParam'),
|
||||
]);
|
||||
};
|
13
vendor/rector/rector-symfony/src/Set/FOSRestSetList.php
vendored
Normal file
13
vendor/rector/rector-symfony/src/Set/FOSRestSetList.php
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace Rector\Symfony\Set;
|
||||
|
||||
use Rector\Set\Contract\SetListInterface;
|
||||
final class FOSRestSetList implements SetListInterface
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const ANNOTATIONS_TO_ATTRIBUTES = __DIR__ . '/../../config/sets/fosrest/annotations-to-attributes.php';
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user