Updated Rector to commit 731baeb619c884b4f9716a3a67dba3e3d8ac8403

731baeb619 Improve NodeComparator performance (#3659)
This commit is contained in:
Tomas Votruba 2023-04-22 22:11:30 +00:00
parent bd36624100
commit c0a781b4f1
5 changed files with 18 additions and 18 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '81e7980962f1db29f0fc2be5800a822cfb07f656';
public const PACKAGE_VERSION = '731baeb619c884b4f9716a3a67dba3e3d8ac8403';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-04-22 23:48:35';
public const RELEASE_DATE = '2023-04-22 23:07:19';
/**
* @var int
*/

View File

@ -40,23 +40,23 @@ final class NodeComparator
*/
public function areNodesEqual($firstNode, $secondNode) : bool
{
if ($firstNode instanceof Node && $secondNode === null) {
if ($firstNode instanceof Node && !$secondNode instanceof Node) {
return \false;
}
if ($secondNode instanceof Node && $firstNode === null) {
if (!$firstNode instanceof Node && $secondNode instanceof Node) {
return \false;
}
if (\is_array($firstNode)) {
Assert::allIsAOf($firstNode, Node::class);
if ($secondNode === null) {
if (!\is_array($secondNode)) {
return \false;
}
Assert::allIsAOf($firstNode, Node::class);
}
if (\is_array($secondNode)) {
Assert::allIsAOf($secondNode, Node::class);
if ($firstNode === null) {
if (!\is_array($firstNode)) {
return \false;
}
Assert::allIsAOf($secondNode, Node::class);
}
return $this->printWithoutComments($firstNode) === $this->printWithoutComments($secondNode);
}

2
vendor/autoload.php vendored
View File

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

View File

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