Skip to content

Commit

Permalink
Updated Rector to commit eac3d467a9ff5ce778bb79b214c39487a6f928f4
Browse files Browse the repository at this point in the history
rectorphp/rector-src@eac3d46 [ProcessAnalyzer] Remove unnecessary hasAttribute(origNode) on RectifiedAnalyzer (#4873)
  • Loading branch information
TomasVotruba committed Aug 28, 2023
1 parent dcd7f10 commit e17db30
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ private function resolveNamespacedName(IdentifierTypeNode $identifierTypeNode, P
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 '';
Expand Down
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 = '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
*/
Expand Down
3 changes: 0 additions & 3 deletions src/ProcessAnalyzer/RectifiedAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ private function isJustReprintedOverlappedTokenStart(Node $node, ?Node $original
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
*
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 ComposerAutoloaderInit7ee1fa6da95c011b74fbbd8dc3025942::getLoader();
return ComposerAutoloaderInit4637e7b33fa4f59a81c443a3f4f3b7fa::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 ComposerAutoloaderInit7ee1fa6da95c011b74fbbd8dc3025942
class ComposerAutoloaderInit4637e7b33fa4f59a81c443a3f4f3b7fa
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
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;
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 ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942
class ComposerStaticInit4637e7b33fa4f59a81c443a3f4f3b7fa
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit e17db30

Please sign in to comment.