From 4659b9e98361c419dc3aa7f70645b901317efecf Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Fri, 4 Mar 2022 11:22:36 +0000 Subject: [PATCH] Updated Rector to commit 460e0b464e4fcc696f1d106200187ab713505b73 https://github.com/rectorphp/rector-src/commit/460e0b464e4fcc696f1d106200187ab713505b73 make insertBefore() private, as used only locally (#1903) --- src/Application/VersionResolver.php | 4 ++-- src/NodeManipulator/ClassInsertManipulator.php | 2 +- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 14 +++++++------- vendor/composer/autoload_static.php | 8 ++++---- vendor/scoper-autoload.php | 10 +++++----- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index e23edf79c20..f7852196c79 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -16,11 +16,11 @@ final class VersionResolver /** * @var string */ - public const PACKAGE_VERSION = '4296dd55591ccf738bb2d1aed5b3f0e644e3f941'; + public const PACKAGE_VERSION = '460e0b464e4fcc696f1d106200187ab713505b73'; /** * @var string */ - public const RELEASE_DATE = '2022-03-04 11:05:37'; + public const RELEASE_DATE = '2022-03-04 12:15:37'; public static function resolvePackageVersion() : string { $process = new \RectorPrefix20220304\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__); diff --git a/src/NodeManipulator/ClassInsertManipulator.php b/src/NodeManipulator/ClassInsertManipulator.php index 421f2857853..22171ea592c 100644 --- a/src/NodeManipulator/ClassInsertManipulator.php +++ b/src/NodeManipulator/ClassInsertManipulator.php @@ -94,7 +94,7 @@ final class ClassInsertManipulator * @param Stmt[] $stmts * @return Stmt[] */ - public function insertBefore(array $stmts, \PhpParser\Node\Stmt $stmt, int $key) : array + private function insertBefore(array $stmts, \PhpParser\Node\Stmt $stmt, int $key) : array { \array_splice($stmts, $key, 0, [$stmt]); return $stmts; diff --git a/vendor/autoload.php b/vendor/autoload.php index 530ca2e4852..c2854c2a09b 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit0795e22ccd6446624b66d3c0ff7d0b05::getLoader(); +return ComposerAutoloaderInit2b6f62699f21af801537d69fa362711b::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index dbe8b983f23..384eab3ce2e 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit0795e22ccd6446624b66d3c0ff7d0b05 +class ComposerAutoloaderInit2b6f62699f21af801537d69fa362711b { private static $loader; @@ -22,15 +22,15 @@ class ComposerAutoloaderInit0795e22ccd6446624b66d3c0ff7d0b05 return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit0795e22ccd6446624b66d3c0ff7d0b05', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit2b6f62699f21af801537d69fa362711b', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); - spl_autoload_unregister(array('ComposerAutoloaderInit0795e22ccd6446624b66d3c0ff7d0b05', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit2b6f62699f21af801537d69fa362711b', '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\ComposerStaticInit0795e22ccd6446624b66d3c0ff7d0b05::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit2b6f62699f21af801537d69fa362711b::getInitializer($loader)); } else { $classMap = require __DIR__ . '/autoload_classmap.php'; if ($classMap) { @@ -42,12 +42,12 @@ class ComposerAutoloaderInit0795e22ccd6446624b66d3c0ff7d0b05 $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInit0795e22ccd6446624b66d3c0ff7d0b05::$files; + $includeFiles = Composer\Autoload\ComposerStaticInit2b6f62699f21af801537d69fa362711b::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire0795e22ccd6446624b66d3c0ff7d0b05($fileIdentifier, $file); + composerRequire2b6f62699f21af801537d69fa362711b($fileIdentifier, $file); } return $loader; @@ -59,7 +59,7 @@ class ComposerAutoloaderInit0795e22ccd6446624b66d3c0ff7d0b05 * @param string $file * @return void */ -function composerRequire0795e22ccd6446624b66d3c0ff7d0b05($fileIdentifier, $file) +function composerRequire2b6f62699f21af801537d69fa362711b($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 05d6f428a4b..7feed3d227a 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit0795e22ccd6446624b66d3c0ff7d0b05 +class ComposerStaticInit2b6f62699f21af801537d69fa362711b { public static $files = array ( '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', @@ -3831,9 +3831,9 @@ class ComposerStaticInit0795e22ccd6446624b66d3c0ff7d0b05 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit0795e22ccd6446624b66d3c0ff7d0b05::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit0795e22ccd6446624b66d3c0ff7d0b05::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit0795e22ccd6446624b66d3c0ff7d0b05::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit2b6f62699f21af801537d69fa362711b::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit2b6f62699f21af801537d69fa362711b::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit2b6f62699f21af801537d69fa362711b::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/scoper-autoload.php b/vendor/scoper-autoload.php index 4509ba92715..c1fc0173397 100644 --- a/vendor/scoper-autoload.php +++ b/vendor/scoper-autoload.php @@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php'; if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) { spl_autoload_call('RectorPrefix20220304\AutoloadIncluder'); } -if (!class_exists('ComposerAutoloaderInit0795e22ccd6446624b66d3c0ff7d0b05', false) && !interface_exists('ComposerAutoloaderInit0795e22ccd6446624b66d3c0ff7d0b05', false) && !trait_exists('ComposerAutoloaderInit0795e22ccd6446624b66d3c0ff7d0b05', false)) { - spl_autoload_call('RectorPrefix20220304\ComposerAutoloaderInit0795e22ccd6446624b66d3c0ff7d0b05'); +if (!class_exists('ComposerAutoloaderInit2b6f62699f21af801537d69fa362711b', false) && !interface_exists('ComposerAutoloaderInit2b6f62699f21af801537d69fa362711b', false) && !trait_exists('ComposerAutoloaderInit2b6f62699f21af801537d69fa362711b', false)) { + spl_autoload_call('RectorPrefix20220304\ComposerAutoloaderInit2b6f62699f21af801537d69fa362711b'); } 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('RectorPrefix20220304\Helmich\TypoScriptParser\Parser\AST\Statement'); @@ -59,9 +59,9 @@ if (!function_exists('print_node')) { return \RectorPrefix20220304\print_node(...func_get_args()); } } -if (!function_exists('composerRequire0795e22ccd6446624b66d3c0ff7d0b05')) { - function composerRequire0795e22ccd6446624b66d3c0ff7d0b05() { - return \RectorPrefix20220304\composerRequire0795e22ccd6446624b66d3c0ff7d0b05(...func_get_args()); +if (!function_exists('composerRequire2b6f62699f21af801537d69fa362711b')) { + function composerRequire2b6f62699f21af801537d69fa362711b() { + return \RectorPrefix20220304\composerRequire2b6f62699f21af801537d69fa362711b(...func_get_args()); } } if (!function_exists('scanPath')) {