Skip to content

Commit

Permalink
Updated Rector to commit cb1473a
Browse files Browse the repository at this point in the history
rectorphp/rector-src@cb1473a [Renaming] Do not rename class with same name inside different namespace on RenameClassRector (#2455)
  • Loading branch information
TomasVotruba committed Jun 9, 2022
1 parent 3605223 commit 5121d59
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

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

return ComposerAutoloaderInita9594a8d31d0a350e94df5747cde49f5::getLoader();
return ComposerAutoloaderInit054c23ebebde630e83754fdc66ee533b::getLoader();
14 changes: 7 additions & 7 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 ComposerAutoloaderInita9594a8d31d0a350e94df5747cde49f5
class ComposerAutoloaderInit054c23ebebde630e83754fdc66ee533b
{
private static $loader;

Expand All @@ -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;
Expand All @@ -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;
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 ComposerStaticInita9594a8d31d0a350e94df5747cde49f5
class ComposerStaticInit054c23ebebde630e83754fdc66ee533b
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 5121d59

Please sign in to comment.