mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
Updated Rector to commit 30bc9ac21ab0e2acbd617954ed6358557514e188
30bc9ac21a
[Core] Refactor NodeComparator::areSameNode() to always compare printed node on last (#3193)
This commit is contained in:
parent
04232cb88d
commit
12fbd94766
@ -17,12 +17,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'd80ddd193deeebd47e765dfb58d300faaedc25b4';
|
||||
public const PACKAGE_VERSION = '30bc9ac21ab0e2acbd617954ed6358557514e188';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-12-13 13:05:23';
|
||||
public const RELEASE_DATE = '2022-12-13 13:52:32';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -89,6 +89,11 @@ final class NodeComparator
|
||||
if ($firstNode->getStartTokenPos() !== $secondNode->getStartTokenPos()) {
|
||||
return \false;
|
||||
}
|
||||
return $firstNode->getEndTokenPos() === $secondNode->getEndTokenPos();
|
||||
if ($firstNode->getEndTokenPos() !== $secondNode->getEndTokenPos()) {
|
||||
return \false;
|
||||
}
|
||||
$printFirstNode = $this->nodePrinter->print($firstNode);
|
||||
$printSecondNode = $this->nodePrinter->print($secondNode);
|
||||
return $printFirstNode === $printSecondNode;
|
||||
}
|
||||
}
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit8773007a1f91d515754b188a5237304c::getLoader();
|
||||
return ComposerAutoloaderInit0946be413470b7468a3c282fe54e525c::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit8773007a1f91d515754b188a5237304c
|
||||
class ComposerAutoloaderInit0946be413470b7468a3c282fe54e525c
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,19 +22,19 @@ class ComposerAutoloaderInit8773007a1f91d515754b188a5237304c
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit8773007a1f91d515754b188a5237304c', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit0946be413470b7468a3c282fe54e525c', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit8773007a1f91d515754b188a5237304c', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit0946be413470b7468a3c282fe54e525c', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit8773007a1f91d515754b188a5237304c::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit0946be413470b7468a3c282fe54e525c::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit8773007a1f91d515754b188a5237304c::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit0946be413470b7468a3c282fe54e525c::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire8773007a1f91d515754b188a5237304c($fileIdentifier, $file);
|
||||
composerRequire0946be413470b7468a3c282fe54e525c($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -46,7 +46,7 @@ class ComposerAutoloaderInit8773007a1f91d515754b188a5237304c
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire8773007a1f91d515754b188a5237304c($fileIdentifier, $file)
|
||||
function composerRequire0946be413470b7468a3c282fe54e525c($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit8773007a1f91d515754b188a5237304c
|
||||
class ComposerStaticInit0946be413470b7468a3c282fe54e525c
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -3027,9 +3027,9 @@ class ComposerStaticInit8773007a1f91d515754b188a5237304c
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit8773007a1f91d515754b188a5237304c::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit8773007a1f91d515754b188a5237304c::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit8773007a1f91d515754b188a5237304c::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit0946be413470b7468a3c282fe54e525c::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit0946be413470b7468a3c282fe54e525c::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit0946be413470b7468a3c282fe54e525c::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user