mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Updated Rector to commit 2d4ac921207f17e26fd8524abb1936b7dd8a0371
2d4ac92120
use rector as dependency, its the only way to see the bug
This commit is contained in:
parent
dbb41a401a
commit
27fd5c38cf
2
.github/workflows/e2e_php74.yaml
vendored
2
.github/workflows/e2e_php74.yaml
vendored
@ -28,6 +28,6 @@ jobs:
|
||||
working-directory: e2e/parse-match-class-on-php74
|
||||
|
||||
-
|
||||
run: ../../bin/rector process --dry-run --ansi
|
||||
run: vendor/bin/rector process --dry-run --ansi
|
||||
working-directory: e2e/parse-match-class-on-php74
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"require": {
|
||||
"php": "7.4.*",
|
||||
"rector/rector": "^0.12.7",
|
||||
"ruflin/elastica": "6.1.5"
|
||||
},
|
||||
"autoload": {
|
||||
|
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '4dbfce13a1dcfcc34b58951ba3b5dcbbe1353526';
|
||||
public const PACKAGE_VERSION = '2d4ac921207f17e26fd8524abb1936b7dd8a0371';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-12-13 21:21:22';
|
||||
public const RELEASE_DATE = '2021-12-13 21:37:59';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20211213\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit46bae72f3c74c866dc8864de8e517f8e::getLoader();
|
||||
return ComposerAutoloaderInit3c51500a239543f2dafd426319004d36::getLoader();
|
||||
|
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 ComposerAutoloaderInit46bae72f3c74c866dc8864de8e517f8e
|
||||
class ComposerAutoloaderInit3c51500a239543f2dafd426319004d36
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInit46bae72f3c74c866dc8864de8e517f8e
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit46bae72f3c74c866dc8864de8e517f8e', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit3c51500a239543f2dafd426319004d36', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit46bae72f3c74c866dc8864de8e517f8e', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit3c51500a239543f2dafd426319004d36', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit46bae72f3c74c866dc8864de8e517f8e::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit3c51500a239543f2dafd426319004d36::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,19 +42,19 @@ class ComposerAutoloaderInit46bae72f3c74c866dc8864de8e517f8e
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit46bae72f3c74c866dc8864de8e517f8e::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit3c51500a239543f2dafd426319004d36::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire46bae72f3c74c866dc8864de8e517f8e($fileIdentifier, $file);
|
||||
composerRequire3c51500a239543f2dafd426319004d36($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire46bae72f3c74c866dc8864de8e517f8e($fileIdentifier, $file)
|
||||
function composerRequire3c51500a239543f2dafd426319004d36($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit46bae72f3c74c866dc8864de8e517f8e
|
||||
class ComposerStaticInit3c51500a239543f2dafd426319004d36
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
@ -3822,9 +3822,9 @@ class ComposerStaticInit46bae72f3c74c866dc8864de8e517f8e
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit46bae72f3c74c866dc8864de8e517f8e::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit46bae72f3c74c866dc8864de8e517f8e::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit46bae72f3c74c866dc8864de8e517f8e::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit3c51500a239543f2dafd426319004d36::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit3c51500a239543f2dafd426319004d36::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit3c51500a239543f2dafd426319004d36::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
10
vendor/composer/installed.json
vendored
10
vendor/composer/installed.json
vendored
@ -2737,12 +2737,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/sabbelasichon\/typo3-rector.git",
|
||||
"reference": "7109b9b06de97258ae947ed629e5a6e9e6751bb1"
|
||||
"reference": "940411640abddb4f5465266c4db130299e304793"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/sabbelasichon\/typo3-rector\/zipball\/7109b9b06de97258ae947ed629e5a6e9e6751bb1",
|
||||
"reference": "7109b9b06de97258ae947ed629e5a6e9e6751bb1",
|
||||
"url": "https:\/\/api.github.com\/repos\/sabbelasichon\/typo3-rector\/zipball\/940411640abddb4f5465266c4db130299e304793",
|
||||
"reference": "940411640abddb4f5465266c4db130299e304793",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -2773,7 +2773,7 @@
|
||||
"symplify\/vendor-patches": "^10.0",
|
||||
"tracy\/tracy": "^2.8"
|
||||
},
|
||||
"time": "2021-12-11T08:42:10+00:00",
|
||||
"time": "2021-12-13T20:33:55+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
@ -2807,7 +2807,7 @@
|
||||
"description": "Instant fixes for your TYPO3 code by using Rector.",
|
||||
"support": {
|
||||
"issues": "https:\/\/github.com\/sabbelasichon\/typo3-rector\/issues",
|
||||
"source": "https:\/\/github.com\/sabbelasichon\/typo3-rector\/tree\/v.0.11.33"
|
||||
"source": "https:\/\/github.com\/sabbelasichon\/typo3-rector\/tree\/main"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
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-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 584d84b'), '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 567cdd2'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 36d651e'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 4fb1137'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 1e3b3ab'), '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 47298f7'), '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 ed23e61'), '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 0a50dc4'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7109b9b'));
|
||||
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 584d84b'), '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 567cdd2'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 36d651e'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 4fb1137'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 1e3b3ab'), '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 47298f7'), '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 ed23e61'), '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 0a50dc4'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9404116'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -12,8 +12,8 @@ if (!class_exists('GenerateChangelogCommand', false) && !interface_exists('Gener
|
||||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20211213\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit46bae72f3c74c866dc8864de8e517f8e', false) && !interface_exists('ComposerAutoloaderInit46bae72f3c74c866dc8864de8e517f8e', false) && !trait_exists('ComposerAutoloaderInit46bae72f3c74c866dc8864de8e517f8e', false)) {
|
||||
spl_autoload_call('RectorPrefix20211213\ComposerAutoloaderInit46bae72f3c74c866dc8864de8e517f8e');
|
||||
if (!class_exists('ComposerAutoloaderInit3c51500a239543f2dafd426319004d36', false) && !interface_exists('ComposerAutoloaderInit3c51500a239543f2dafd426319004d36', false) && !trait_exists('ComposerAutoloaderInit3c51500a239543f2dafd426319004d36', false)) {
|
||||
spl_autoload_call('RectorPrefix20211213\ComposerAutoloaderInit3c51500a239543f2dafd426319004d36');
|
||||
}
|
||||
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
|
||||
spl_autoload_call('RectorPrefix20211213\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -81,9 +81,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20211213\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire46bae72f3c74c866dc8864de8e517f8e')) {
|
||||
function composerRequire46bae72f3c74c866dc8864de8e517f8e() {
|
||||
return \RectorPrefix20211213\composerRequire46bae72f3c74c866dc8864de8e517f8e(...func_get_args());
|
||||
if (!function_exists('composerRequire3c51500a239543f2dafd426319004d36')) {
|
||||
function composerRequire3c51500a239543f2dafd426319004d36() {
|
||||
return \RectorPrefix20211213\composerRequire3c51500a239543f2dafd426319004d36(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
@ -50,7 +50,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$parameters->set(Option::IMPORT_DOC_BLOCKS, false);
|
||||
|
||||
// Define your target version which you want to support
|
||||
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_72);
|
||||
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_74);
|
||||
|
||||
// If you only want to process one/some TYPO3 extension(s), you can specify its path(s) here.
|
||||
// If you use the option --config change __DIR__ to getcwd()
|
||||
|
@ -35,7 +35,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$parameters->set(Option::IMPORT_DOC_BLOCKS, false);
|
||||
|
||||
// Define your target version which you want to support
|
||||
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_72);
|
||||
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_74);
|
||||
|
||||
// If you have an editorconfig and changed files should keep their format enable it here
|
||||
// $parameters->set(Option::ENABLE_EDITORCONFIG, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user