Updated Rector to commit b116bc0cbda89ff560680be74e6e35c9831b0e07

b116bc0cbd Defer type-resolving in RemoveJustPropertyFetchRector (#3761)
This commit is contained in:
Tomas Votruba 2023-05-08 04:31:43 +00:00
parent 1a8369a7a5
commit 359cac195c
5 changed files with 15 additions and 15 deletions

View File

@ -197,9 +197,6 @@ CODE_SAMPLE
if (!$assign->expr instanceof PropertyFetch) {
return null;
}
if ($this->isPropertyFetchCallerNode($assign->expr)) {
return null;
}
// keep property fetch nesting
if ($assign->expr->var instanceof PropertyFetch) {
return null;
@ -207,6 +204,9 @@ CODE_SAMPLE
if (!$assign->var instanceof Variable) {
return null;
}
if ($this->isPropertyFetchCallerNode($assign->expr)) {
return null;
}
return new PropertyFetchToVariableAssign($assign->var, $assign->expr);
}
private function isPropertyFetchCallerNode(PropertyFetch $propertyFetch) : bool

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '01c1377112dacbc80e690fd3468220645fc8a363';
public const PACKAGE_VERSION = 'b116bc0cbda89ff560680be74e6e35c9831b0e07';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-05-07 21:11:07';
public const RELEASE_DATE = '2023-05-08 11:27:44';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit10e9763d2fc515890f00a9852fffcba9
class ComposerAutoloaderInitd33c8e80be1c4c181ec59f382a1ebb50
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit10e9763d2fc515890f00a9852fffcba9
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit10e9763d2fc515890f00a9852fffcba9', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitd33c8e80be1c4c181ec59f382a1ebb50', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit10e9763d2fc515890f00a9852fffcba9', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitd33c8e80be1c4c181ec59f382a1ebb50', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit10e9763d2fc515890f00a9852fffcba9::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitd33c8e80be1c4c181ec59f382a1ebb50::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit10e9763d2fc515890f00a9852fffcba9::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInitd33c8e80be1c4c181ec59f382a1ebb50::$files;
$requireFile = \Closure::bind(static function ($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 ComposerStaticInit10e9763d2fc515890f00a9852fffcba9
class ComposerStaticInitd33c8e80be1c4c181ec59f382a1ebb50
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3121,9 +3121,9 @@ class ComposerStaticInit10e9763d2fc515890f00a9852fffcba9
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit10e9763d2fc515890f00a9852fffcba9::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit10e9763d2fc515890f00a9852fffcba9::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit10e9763d2fc515890f00a9852fffcba9::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitd33c8e80be1c4c181ec59f382a1ebb50::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitd33c8e80be1c4c181ec59f382a1ebb50::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitd33c8e80be1c4c181ec59f382a1ebb50::$classMap;
}, null, ClassLoader::class);
}