Updated Rector to commit 3ae5f0c834

3ae5f0c834 [Renaming] Handle crash on FuncCall with Arg class name conflict with use statement or namespace on RenameClassRector with auto import enabled (#2431)
This commit is contained in:
Tomas Votruba 2022-06-06 08:42:24 +00:00
parent 062970bc82
commit 9f321355c7
6 changed files with 22 additions and 19 deletions

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = 'df5bd5fb794a4be63a8461c44c14af4a4b1e120f';
public const PACKAGE_VERSION = '3ae5f0c834ef98d5b3130c6a1c556631b6a93658';
/**
* @var string
*/
public const RELEASE_DATE = '2022-06-06 10:32:34';
public const RELEASE_DATE = '2022-06-06 10:34:51';
/**
* @var int
*/

View File

@ -29,6 +29,9 @@ final class RenamedClassesSourceLocator implements \PHPStan\BetterReflection\Sou
}
public function locateIdentifier(\PHPStan\BetterReflection\Reflector\Reflector $reflector, \PHPStan\BetterReflection\Identifier\Identifier $identifier) : ?\PHPStan\BetterReflection\Reflection\Reflection
{
if (!$identifier->isClass()) {
return null;
}
$identifierName = $identifier->getName();
foreach ($this->renamedClassesDataCollector->getOldClasses() as $oldClass) {
if ($identifierName !== $oldClass) {

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit3374bf55bac88f8f4e8fbc6554aff688
class ComposerAutoloaderInit624aef0f213c0658b574b9871802d2be
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInit3374bf55bac88f8f4e8fbc6554aff688
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit3374bf55bac88f8f4e8fbc6554aff688', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit624aef0f213c0658b574b9871802d2be', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit3374bf55bac88f8f4e8fbc6554aff688', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit624aef0f213c0658b574b9871802d2be', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit3374bf55bac88f8f4e8fbc6554aff688::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit624aef0f213c0658b574b9871802d2be::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInit3374bf55bac88f8f4e8fbc6554aff688::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInit624aef0f213c0658b574b9871802d2be::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire3374bf55bac88f8f4e8fbc6554aff688($fileIdentifier, $file);
composerRequire624aef0f213c0658b574b9871802d2be($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInit3374bf55bac88f8f4e8fbc6554aff688
* @param string $file
* @return void
*/
function composerRequire3374bf55bac88f8f4e8fbc6554aff688($fileIdentifier, $file)
function composerRequire624aef0f213c0658b574b9871802d2be($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 ComposerStaticInit3374bf55bac88f8f4e8fbc6554aff688
class ComposerStaticInit624aef0f213c0658b574b9871802d2be
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
@ -3797,9 +3797,9 @@ class ComposerStaticInit3374bf55bac88f8f4e8fbc6554aff688
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit3374bf55bac88f8f4e8fbc6554aff688::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit3374bf55bac88f8f4e8fbc6554aff688::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit3374bf55bac88f8f4e8fbc6554aff688::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit624aef0f213c0658b574b9871802d2be::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit624aef0f213c0658b574b9871802d2be::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit624aef0f213c0658b574b9871802d2be::$classMap;
}, null, ClassLoader::class);
}

View File

@ -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('RectorPrefix20220606\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInit3374bf55bac88f8f4e8fbc6554aff688', false) && !interface_exists('ComposerAutoloaderInit3374bf55bac88f8f4e8fbc6554aff688', false) && !trait_exists('ComposerAutoloaderInit3374bf55bac88f8f4e8fbc6554aff688', false)) {
spl_autoload_call('RectorPrefix20220606\ComposerAutoloaderInit3374bf55bac88f8f4e8fbc6554aff688');
if (!class_exists('ComposerAutoloaderInit624aef0f213c0658b574b9871802d2be', false) && !interface_exists('ComposerAutoloaderInit624aef0f213c0658b574b9871802d2be', false) && !trait_exists('ComposerAutoloaderInit624aef0f213c0658b574b9871802d2be', false)) {
spl_autoload_call('RectorPrefix20220606\ComposerAutoloaderInit624aef0f213c0658b574b9871802d2be');
}
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('RectorPrefix20220606\Helmich\TypoScriptParser\Parser\AST\Statement');
@ -56,9 +56,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20220606\print_node(...func_get_args());
}
}
if (!function_exists('composerRequire3374bf55bac88f8f4e8fbc6554aff688')) {
function composerRequire3374bf55bac88f8f4e8fbc6554aff688() {
return \RectorPrefix20220606\composerRequire3374bf55bac88f8f4e8fbc6554aff688(...func_get_args());
if (!function_exists('composerRequire624aef0f213c0658b574b9871802d2be')) {
function composerRequire624aef0f213c0658b574b9871802d2be() {
return \RectorPrefix20220606\composerRequire624aef0f213c0658b574b9871802d2be(...func_get_args());
}
}
if (!function_exists('scanPath')) {