From cd95eb3dcc371a293c5aa602af7d8b7f261074fd Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 12 May 2022 19:20:31 +0000 Subject: [PATCH] Updated Rector to commit 1ec5e2d35bb93bc7554c799b169c6a4d41223e22 https://github.com/rectorphp/rector-src/commit/1ec5e2d35bb93bc7554c799b169c6a4d41223e22 restore links --- .../NodeTypeCorrector/PregMatchTypeCorrector.php | 2 +- .../FuncCall/AddPregQuoteDelimiterRector.php | 2 +- .../DowngradePregUnmatchedAsNullConstantRector.php | 2 +- .../DowngradeContravariantArgumentTypeRector.php | 2 +- rules/Naming/Naming/PropertyNaming.php | 2 +- src/Application/VersionResolver.php | 4 ++-- src/NonPhpFile/Rector/RenameClassNonPhpRector.php | 2 +- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 14 +++++++------- vendor/composer/autoload_static.php | 8 ++++---- vendor/scoper-autoload.php | 10 +++++----- 11 files changed, 25 insertions(+), 25 deletions(-) diff --git a/packages/NodeTypeResolver/NodeTypeCorrector/PregMatchTypeCorrector.php b/packages/NodeTypeResolver/NodeTypeCorrector/PregMatchTypeCorrector.php index 548269f865c..23d54fe55bd 100644 --- a/packages/NodeTypeResolver/NodeTypeCorrector/PregMatchTypeCorrector.php +++ b/packages/NodeTypeResolver/NodeTypeCorrector/PregMatchTypeCorrector.php @@ -53,7 +53,7 @@ final class PregMatchTypeCorrector } /** * Special case for "preg_match(), preg_match_all()" - with 3rd argument - * @changelog https://github.com/rectorphp/rector/issues/786 + * @see https://github.com/rectorphp/rector/issues/786 */ public function correct(\PhpParser\Node $node, \PHPStan\Type\Type $originalType) : \PHPStan\Type\Type { diff --git a/rules/CodeQuality/Rector/FuncCall/AddPregQuoteDelimiterRector.php b/rules/CodeQuality/Rector/FuncCall/AddPregQuoteDelimiterRector.php index ae85ec35587..28c6ba8c9c7 100644 --- a/rules/CodeQuality/Rector/FuncCall/AddPregQuoteDelimiterRector.php +++ b/rules/CodeQuality/Rector/FuncCall/AddPregQuoteDelimiterRector.php @@ -20,7 +20,7 @@ final class AddPregQuoteDelimiterRector extends \Rector\Core\Rector\AbstractRect { /** * @var string - * @changelog https://www.php.net/manual/en/reference.pcre.pattern.modifiers.php + * @see https://www.php.net/manual/en/reference.pcre.pattern.modifiers.php */ private const ALL_MODIFIERS = 'imsxeADSUXJu'; public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition diff --git a/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php b/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php index 72d0ace6ae4..70de1bc1161 100644 --- a/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php +++ b/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php @@ -33,7 +33,7 @@ use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; final class DowngradePregUnmatchedAsNullConstantRector extends \Rector\Core\Rector\AbstractRector { /** - * @changelog https://www.php.net/manual/en/function.preg-match.php + * @see https://www.php.net/manual/en/function.preg-match.php * @var string */ private const UNMATCHED_NULL_FLAG = 'PREG_UNMATCHED_AS_NULL'; diff --git a/rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php b/rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php index e36cf3550b8..9a77ce734d8 100644 --- a/rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php +++ b/rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php @@ -193,7 +193,7 @@ CODE_SAMPLE if ($parentReflectionMethodParam->getName() === $paramName) { /** * Getting a ReflectionNamedType works from PHP 7.1 onwards - * @changelog https://www.php.net/manual/en/reflectionparameter.gettype.php#125334 + * @see https://www.php.net/manual/en/reflectionparameter.gettype.php#125334 */ $reflectionParamType = $parentReflectionMethodParam->getType(); /** diff --git a/rules/Naming/Naming/PropertyNaming.php b/rules/Naming/Naming/PropertyNaming.php index 13ebca5c3c7..e8b0c1371f5 100644 --- a/rules/Naming/Naming/PropertyNaming.php +++ b/rules/Naming/Naming/PropertyNaming.php @@ -131,7 +131,7 @@ final class PropertyNaming return $this->prolongIfTooShort($variableName, $className); } /** - * @changelog https://stackoverflow.com/a/2792045/1348344 + * @see https://stackoverflow.com/a/2792045/1348344 */ public function underscoreToName(string $underscoreName) : string { diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 4888adb14d9..43edb72983c 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -16,11 +16,11 @@ final class VersionResolver /** * @var string */ - public const PACKAGE_VERSION = '52ea41240ecfb6f0a8310082419b1e61feecd0c3'; + public const PACKAGE_VERSION = '1ec5e2d35bb93bc7554c799b169c6a4d41223e22'; /** * @var string */ - public const RELEASE_DATE = '2022-05-12 21:10:39'; + public const RELEASE_DATE = '2022-05-12 21:13:03'; /** * @var string */ diff --git a/src/NonPhpFile/Rector/RenameClassNonPhpRector.php b/src/NonPhpFile/Rector/RenameClassNonPhpRector.php index 6923a0813cb..99434bd03fa 100644 --- a/src/NonPhpFile/Rector/RenameClassNonPhpRector.php +++ b/src/NonPhpFile/Rector/RenameClassNonPhpRector.php @@ -22,7 +22,7 @@ final class RenameClassNonPhpRector implements \Rector\Core\Contract\Rector\NonP private const STANDALONE_CLASS_PREFIX_REGEX = '#((?|\\.|\'))|(?\\s+\\\\))'; /** * @see https://regex101.com/r/HKUFJD/5 - * @changelog https://stackoverflow.com/a/3926546/1348344 + * @see https://stackoverflow.com/a/3926546/1348344 * @var string */ private const STANDALONE_CLASS_SUFFIX_REGEX = '(?=::)#'; diff --git a/vendor/autoload.php b/vendor/autoload.php index 9c71b681021..175ec40b212 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInita7cb7ce1479289fc347d8409dc6a05d2::getLoader(); +return ComposerAutoloaderInit7718bb1a9342aa47f506f9c9726386c9::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 4ac39f3103f..fb8a54fc9e0 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInita7cb7ce1479289fc347d8409dc6a05d2 +class ComposerAutoloaderInit7718bb1a9342aa47f506f9c9726386c9 { private static $loader; @@ -22,19 +22,19 @@ class ComposerAutoloaderInita7cb7ce1479289fc347d8409dc6a05d2 return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInita7cb7ce1479289fc347d8409dc6a05d2', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit7718bb1a9342aa47f506f9c9726386c9', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInita7cb7ce1479289fc347d8409dc6a05d2', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit7718bb1a9342aa47f506f9c9726386c9', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInita7cb7ce1479289fc347d8409dc6a05d2::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit7718bb1a9342aa47f506f9c9726386c9::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $includeFiles = \Composer\Autoload\ComposerStaticInita7cb7ce1479289fc347d8409dc6a05d2::$files; + $includeFiles = \Composer\Autoload\ComposerStaticInit7718bb1a9342aa47f506f9c9726386c9::$files; foreach ($includeFiles as $fileIdentifier => $file) { - composerRequirea7cb7ce1479289fc347d8409dc6a05d2($fileIdentifier, $file); + composerRequire7718bb1a9342aa47f506f9c9726386c9($fileIdentifier, $file); } return $loader; @@ -46,7 +46,7 @@ class ComposerAutoloaderInita7cb7ce1479289fc347d8409dc6a05d2 * @param string $file * @return void */ -function composerRequirea7cb7ce1479289fc347d8409dc6a05d2($fileIdentifier, $file) +function composerRequire7718bb1a9342aa47f506f9c9726386c9($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 f2402240764..c8f619effdf 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInita7cb7ce1479289fc347d8409dc6a05d2 +class ComposerStaticInit7718bb1a9342aa47f506f9c9726386c9 { public static $files = array ( '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', @@ -3896,9 +3896,9 @@ class ComposerStaticInita7cb7ce1479289fc347d8409dc6a05d2 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInita7cb7ce1479289fc347d8409dc6a05d2::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInita7cb7ce1479289fc347d8409dc6a05d2::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInita7cb7ce1479289fc347d8409dc6a05d2::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit7718bb1a9342aa47f506f9c9726386c9::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit7718bb1a9342aa47f506f9c9726386c9::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit7718bb1a9342aa47f506f9c9726386c9::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/scoper-autoload.php b/vendor/scoper-autoload.php index 3b590c0a4e3..730bbe25673 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('RectorPrefix20220512\AutoloadIncluder'); } -if (!class_exists('ComposerAutoloaderInita7cb7ce1479289fc347d8409dc6a05d2', false) && !interface_exists('ComposerAutoloaderInita7cb7ce1479289fc347d8409dc6a05d2', false) && !trait_exists('ComposerAutoloaderInita7cb7ce1479289fc347d8409dc6a05d2', false)) { - spl_autoload_call('RectorPrefix20220512\ComposerAutoloaderInita7cb7ce1479289fc347d8409dc6a05d2'); +if (!class_exists('ComposerAutoloaderInit7718bb1a9342aa47f506f9c9726386c9', false) && !interface_exists('ComposerAutoloaderInit7718bb1a9342aa47f506f9c9726386c9', false) && !trait_exists('ComposerAutoloaderInit7718bb1a9342aa47f506f9c9726386c9', false)) { + spl_autoload_call('RectorPrefix20220512\ComposerAutoloaderInit7718bb1a9342aa47f506f9c9726386c9'); } 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('RectorPrefix20220512\Helmich\TypoScriptParser\Parser\AST\Statement'); @@ -59,9 +59,9 @@ if (!function_exists('print_node')) { return \RectorPrefix20220512\print_node(...func_get_args()); } } -if (!function_exists('composerRequirea7cb7ce1479289fc347d8409dc6a05d2')) { - function composerRequirea7cb7ce1479289fc347d8409dc6a05d2() { - return \RectorPrefix20220512\composerRequirea7cb7ce1479289fc347d8409dc6a05d2(...func_get_args()); +if (!function_exists('composerRequire7718bb1a9342aa47f506f9c9726386c9')) { + function composerRequire7718bb1a9342aa47f506f9c9726386c9() { + return \RectorPrefix20220512\composerRequire7718bb1a9342aa47f506f9c9726386c9(...func_get_args()); } } if (!function_exists('scanPath')) {