Skip to content

Commit

Permalink
Updated Rector to commit c03fd2ad2625f1a0cf6a02d9875078b7114381ad
Browse files Browse the repository at this point in the history
rectorphp/rector-src@c03fd2a [Performance] Avoid spl_object_hash() when has origNode attribute on AbstractRector::leaveNode() (#4875)
  • Loading branch information
TomasVotruba committed Aug 28, 2023
1 parent dd562a4 commit de9ddf6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '9e8ed6c33f39aa9d7d859fb39b6f2d0344cdea0d';
public const PACKAGE_VERSION = 'c03fd2ad2625f1a0cf6a02d9875078b7114381ad';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-08-28 14:43:08';
public const RELEASE_DATE = '2023-08-28 21:22:21';
/**
* @var int
*/
Expand Down
3 changes: 3 additions & 0 deletions src/Rector/AbstractRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ public final function enterNode(Node $node)
*/
public function leaveNode(Node $node)
{
if ($node->hasAttribute(AttributeKey::ORIGINAL_NODE)) {
return null;
}
$objectHash = \spl_object_hash($node);
if ($this->toBeRemovedNodeHash === $objectHash) {
$this->toBeRemovedNodeHash = null;
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit3242d5514b8f61810061aee8e5f52c95::getLoader();
return ComposerAutoloaderInit129728a48b87039bca6f60cdcf06f91f::getLoader();
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit3242d5514b8f61810061aee8e5f52c95
class ComposerAutoloaderInit129728a48b87039bca6f60cdcf06f91f
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInit3242d5514b8f61810061aee8e5f52c95', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit129728a48b87039bca6f60cdcf06f91f', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit3242d5514b8f61810061aee8e5f52c95', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit129728a48b87039bca6f60cdcf06f91f', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit3242d5514b8f61810061aee8e5f52c95::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit129728a48b87039bca6f60cdcf06f91f::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$filesToLoad = \Composer\Autoload\ComposerStaticInit3242d5514b8f61810061aee8e5f52c95::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit129728a48b87039bca6f60cdcf06f91f::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit3242d5514b8f61810061aee8e5f52c95
class ComposerStaticInit129728a48b87039bca6f60cdcf06f91f
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -2606,9 +2606,9 @@ class ComposerStaticInit3242d5514b8f61810061aee8e5f52c95
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit3242d5514b8f61810061aee8e5f52c95::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit3242d5514b8f61810061aee8e5f52c95::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit3242d5514b8f61810061aee8e5f52c95::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit129728a48b87039bca6f60cdcf06f91f::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit129728a48b87039bca6f60cdcf06f91f::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit129728a48b87039bca6f60cdcf06f91f::$classMap;

}, null, ClassLoader::class);
}
Expand Down

0 comments on commit de9ddf6

Please sign in to comment.