diff --git a/packages/NodeTypeResolver/PhpDocNodeVisitor/ClassRenamePhpDocNodeVisitor.php b/packages/NodeTypeResolver/PhpDocNodeVisitor/ClassRenamePhpDocNodeVisitor.php index 2480257d43ce..6a934cd6c08f 100644 --- a/packages/NodeTypeResolver/PhpDocNodeVisitor/ClassRenamePhpDocNodeVisitor.php +++ b/packages/NodeTypeResolver/PhpDocNodeVisitor/ClassRenamePhpDocNodeVisitor.php @@ -5,6 +5,7 @@ use PhpParser\Node as PhpParserNode; use PhpParser\Node\Identifier; +use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Stmt\GroupUse; use PhpParser\Node\Stmt\Namespace_; use PhpParser\Node\Stmt\Use_; @@ -83,6 +84,10 @@ public function enterNode(Node $node) : ?Node if ($virtualNode === \true) { return null; } + $previousNode = $phpParserNode->getAttribute(AttributeKey::PREVIOUS_NODE); + if ($previousNode instanceof FullyQualified) { + return null; + } $identifier = clone $node; $namespacedName = $this->resolveNamespacedName($phpParserNode, $node->name); $identifier->name = $namespacedName; diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index f3fecdbcdf70..37f9e9a45b02 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -16,11 +16,11 @@ final class VersionResolver /** * @var string */ - public const PACKAGE_VERSION = 'ba48cd2d8704539596bad41d59545b60ff66905a'; + public const PACKAGE_VERSION = 'cb1473a3ac63514816047f63c27df3a0a5b3ede8'; /** * @var string */ - public const RELEASE_DATE = '2022-06-09 08:21:09'; + public const RELEASE_DATE = '2022-06-09 09:32:19'; /** * @var int */ diff --git a/vendor/autoload.php b/vendor/autoload.php index db92b3800289..9e5d7ecd5dd9 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -9,4 +9,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInita9594a8d31d0a350e94df5747cde49f5::getLoader(); +return ComposerAutoloaderInit054c23ebebde630e83754fdc66ee533b::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 813457111b81..9cbea40037d0 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInita9594a8d31d0a350e94df5747cde49f5 +class ComposerAutoloaderInit054c23ebebde630e83754fdc66ee533b { private static $loader; @@ -22,19 +22,19 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInita9594a8d31d0a350e94df5747cde49f5', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit054c23ebebde630e83754fdc66ee533b', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInita9594a8d31d0a350e94df5747cde49f5', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit054c23ebebde630e83754fdc66ee533b', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInita9594a8d31d0a350e94df5747cde49f5::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit054c23ebebde630e83754fdc66ee533b::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $includeFiles = \Composer\Autoload\ComposerStaticInita9594a8d31d0a350e94df5747cde49f5::$files; + $includeFiles = \Composer\Autoload\ComposerStaticInit054c23ebebde630e83754fdc66ee533b::$files; foreach ($includeFiles as $fileIdentifier => $file) { - composerRequirea9594a8d31d0a350e94df5747cde49f5($fileIdentifier, $file); + composerRequire054c23ebebde630e83754fdc66ee533b($fileIdentifier, $file); } return $loader; @@ -46,7 +46,7 @@ public static function getLoader() * @param string $file * @return void */ -function composerRequirea9594a8d31d0a350e94df5747cde49f5($fileIdentifier, $file) +function composerRequire054c23ebebde630e83754fdc66ee533b($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 8cccf3a709a5..d48cea664f2c 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInita9594a8d31d0a350e94df5747cde49f5 +class ComposerStaticInit054c23ebebde630e83754fdc66ee533b { public static $files = array ( '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', @@ -3389,9 +3389,9 @@ class ComposerStaticInita9594a8d31d0a350e94df5747cde49f5 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInita9594a8d31d0a350e94df5747cde49f5::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInita9594a8d31d0a350e94df5747cde49f5::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInita9594a8d31d0a350e94df5747cde49f5::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit054c23ebebde630e83754fdc66ee533b::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit054c23ebebde630e83754fdc66ee533b::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit054c23ebebde630e83754fdc66ee533b::$classMap; }, null, ClassLoader::class); }