Skip to content

Commit e17db30

Browse files
committed
Updated Rector to commit eac3d467a9ff5ce778bb79b214c39487a6f928f4
rectorphp/rector-src@eac3d46 [ProcessAnalyzer] Remove unnecessary hasAttribute(origNode) on RectifiedAnalyzer (#4873)
1 parent dcd7f10 commit e17db30

File tree

6 files changed

+15
-18
lines changed

6 files changed

+15
-18
lines changed

packages/NodeTypeResolver/PhpDocNodeVisitor/ClassRenamePhpDocNodeVisitor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ private function resolveNamespacedName(IdentifierTypeNode $identifierTypeNode, P
118118
return $name;
119119
}
120120
$uses = $this->useImportsResolver->resolve();
121-
$originalNode = $phpParserNode->getAttribute(AttributeKey::ORIGINAL_NODE) ?? $phpParserNode;
122-
$scope = $originalNode->getAttribute(AttributeKey::SCOPE);
121+
$originalNode = $phpParserNode->getAttribute(AttributeKey::ORIGINAL_NODE);
122+
$scope = $originalNode instanceof PhpParserNode ? $originalNode->getAttribute(AttributeKey::SCOPE) : $phpParserNode->getAttribute(AttributeKey::SCOPE);
123123
if (!$scope instanceof Scope) {
124-
if (!$phpParserNode->hasAttribute(AttributeKey::ORIGINAL_NODE)) {
124+
if (!$originalNode instanceof PhpParserNode) {
125125
return $this->resolveNamefromUse($uses, $name);
126126
}
127127
return '';

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '7fc7034ddd58ff23d19bd2ed956ab93fdacfd153';
22+
public const PACKAGE_VERSION = 'eac3d467a9ff5ce778bb79b214c39487a6f928f4';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2023-08-28 05:44:27';
27+
public const RELEASE_DATE = '2023-08-28 06:21:14';
2828
/**
2929
* @var int
3030
*/

src/ProcessAnalyzer/RectifiedAnalyzer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ private function isJustReprintedOverlappedTokenStart(Node $node, ?Node $original
4747
if ($originalNode instanceof Node) {
4848
return \false;
4949
}
50-
if ($node->hasAttribute(AttributeKey::ORIGINAL_NODE)) {
51-
return \false;
52-
}
5350
/**
5451
* Start token pos must be < 0 to continue, as the node and parent node just re-printed
5552
*

vendor/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222

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

25-
return ComposerAutoloaderInit7ee1fa6da95c011b74fbbd8dc3025942::getLoader();
25+
return ComposerAutoloaderInit4637e7b33fa4f59a81c443a3f4f3b7fa::getLoader();

vendor/composer/autoload_real.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// autoload_real.php @generated by Composer
44

5-
class ComposerAutoloaderInit7ee1fa6da95c011b74fbbd8dc3025942
5+
class ComposerAutoloaderInit4637e7b33fa4f59a81c443a3f4f3b7fa
66
{
77
private static $loader;
88

@@ -22,17 +22,17 @@ public static function getLoader()
2222
return self::$loader;
2323
}
2424

25-
spl_autoload_register(array('ComposerAutoloaderInit7ee1fa6da95c011b74fbbd8dc3025942', 'loadClassLoader'), true, true);
25+
spl_autoload_register(array('ComposerAutoloaderInit4637e7b33fa4f59a81c443a3f4f3b7fa', 'loadClassLoader'), true, true);
2626
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27-
spl_autoload_unregister(array('ComposerAutoloaderInit7ee1fa6da95c011b74fbbd8dc3025942', 'loadClassLoader'));
27+
spl_autoload_unregister(array('ComposerAutoloaderInit4637e7b33fa4f59a81c443a3f4f3b7fa', 'loadClassLoader'));
2828

2929
require __DIR__ . '/autoload_static.php';
30-
call_user_func(\Composer\Autoload\ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942::getInitializer($loader));
30+
call_user_func(\Composer\Autoload\ComposerStaticInit4637e7b33fa4f59a81c443a3f4f3b7fa::getInitializer($loader));
3131

3232
$loader->setClassMapAuthoritative(true);
3333
$loader->register(true);
3434

35-
$filesToLoad = \Composer\Autoload\ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942::$files;
35+
$filesToLoad = \Composer\Autoload\ComposerStaticInit4637e7b33fa4f59a81c443a3f4f3b7fa::$files;
3636
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
3737
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
3838
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

vendor/composer/autoload_static.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Composer\Autoload;
66

7-
class ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942
7+
class ComposerStaticInit4637e7b33fa4f59a81c443a3f4f3b7fa
88
{
99
public static $files = array (
1010
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@@ -2608,9 +2608,9 @@ class ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942
26082608
public static function getInitializer(ClassLoader $loader)
26092609
{
26102610
return \Closure::bind(function () use ($loader) {
2611-
$loader->prefixLengthsPsr4 = ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942::$prefixLengthsPsr4;
2612-
$loader->prefixDirsPsr4 = ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942::$prefixDirsPsr4;
2613-
$loader->classMap = ComposerStaticInit7ee1fa6da95c011b74fbbd8dc3025942::$classMap;
2611+
$loader->prefixLengthsPsr4 = ComposerStaticInit4637e7b33fa4f59a81c443a3f4f3b7fa::$prefixLengthsPsr4;
2612+
$loader->prefixDirsPsr4 = ComposerStaticInit4637e7b33fa4f59a81c443a3f4f3b7fa::$prefixDirsPsr4;
2613+
$loader->classMap = ComposerStaticInit4637e7b33fa4f59a81c443a3f4f3b7fa::$classMap;
26142614

26152615
}, null, ClassLoader::class);
26162616
}

0 commit comments

Comments
 (0)