mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-14 12:32:00 +02:00
Updated Rector to commit eac3d467a9ff5ce778bb79b214c39487a6f928f4
eac3d467a9
[ProcessAnalyzer] Remove unnecessary hasAttribute(origNode) on RectifiedAnalyzer (#4873)
This commit is contained in:
parent
dcd7f106fc
commit
e17db30c80
@ -118,10 +118,10 @@ final class ClassRenamePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor
|
||||
return $name;
|
||||
}
|
||||
$uses = $this->useImportsResolver->resolve();
|
||||
$originalNode = $phpParserNode->getAttribute(AttributeKey::ORIGINAL_NODE) ?? $phpParserNode;
|
||||
$scope = $originalNode->getAttribute(AttributeKey::SCOPE);
|
||||
$originalNode = $phpParserNode->getAttribute(AttributeKey::ORIGINAL_NODE);
|
||||
$scope = $originalNode instanceof PhpParserNode ? $originalNode->getAttribute(AttributeKey::SCOPE) : $phpParserNode->getAttribute(AttributeKey::SCOPE);
|
||||
if (!$scope instanceof Scope) {
|
||||
if (!$phpParserNode->hasAttribute(AttributeKey::ORIGINAL_NODE)) {
|
||||
if (!$originalNode instanceof PhpParserNode) {
|
||||
return $this->resolveNamefromUse($uses, $name);
|
||||
}
|
||||
return '';
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '7fc7034ddd58ff23d19bd2ed956ab93fdacfd153';
|
||||
public const PACKAGE_VERSION = 'eac3d467a9ff5ce778bb79b214c39487a6f928f4';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-08-28 05:44:27';
|
||||
public const RELEASE_DATE = '2023-08-28 06:21:14';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -47,9 +47,6 @@ final class RectifiedAnalyzer
|
||||
if ($originalNode instanceof Node) {
|
||||
return \false;
|
||||
}
|
||||
if ($node->hasAttribute(AttributeKey::ORIGINAL_NODE)) {
|
||||
return \false;
|
||||
}
|
||||
/**
|
||||
* Start token pos must be < 0 to continue, as the node and parent node just re-printed
|
||||
*
|
||||
|
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 ComposerAutoloaderInit7ee1fa6da95c011b74fbbd8dc3025942::getLoader();
|
||||
return ComposerAutoloaderInit4637e7b33fa4f59a81c443a3f4f3b7fa::getLoader();
|
||||
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit7ee1fa6da95c011b74fbbd8dc3025942
|
||||
class ComposerAutoloaderInit4637e7b33fa4f59a81c443a3f4f3b7fa
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInit7ee1fa6da95c011b74fbbd8dc3025942
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit7ee1fa6da95c011b74fbbd8dc3025942', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit4637e7b33fa4f59a81c443a3f4f3b7fa', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit7ee1fa6da95c011b74fbbd8dc3025942', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit4637e7b33fa4f59a81c443a3f4f3b7fa', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit4637e7b33fa4f59a81c443a3f4f3b7fa::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit4637e7b33fa4f59a81c443a3f4f3b7fa::$files;
|
||||
$requireFile = \Closure::bind(static function ($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 ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942
|
||||
class ComposerStaticInit4637e7b33fa4f59a81c443a3f4f3b7fa
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -2608,9 +2608,9 @@ class ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit4637e7b33fa4f59a81c443a3f4f3b7fa::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit4637e7b33fa4f59a81c443a3f4f3b7fa::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit4637e7b33fa4f59a81c443a3f4f3b7fa::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user