Updated Rector to commit beca17df3f02d9a2a7800e9b238bac3b9c862498

beca17df3f [CodingStyle] Remove parent attribute on NameImporter (#4346)
This commit is contained in:
Tomas Votruba 2023-06-25 16:52:29 +00:00
parent f835cb735b
commit f7561073a3
5 changed files with 17 additions and 15 deletions

View File

@ -4,9 +4,9 @@ declare (strict_types=1);
namespace Rector\CodingStyle\Node;
use PhpParser\Node\Name;
use PhpParser\Node\Name\FullyQualified;
use PhpParser\Node\Stmt\GroupUse;
use PhpParser\Node\Stmt\Use_;
use PhpParser\Node\Stmt\UseUse;
use Rector\CodingStyle\ClassNameImport\AliasUsesResolver;
use Rector\CodingStyle\ClassNameImport\ClassNameImportSkipper;
use Rector\Core\Configuration\Option;
@ -133,8 +133,10 @@ final class NameImporter
if ($name->getAttribute(AttributeKey::IS_NAMESPACE_NAME) === \true) {
return \true;
}
$parentNode = $name->getAttribute(AttributeKey::PARENT_NODE);
return $parentNode instanceof UseUse;
if ($name->getAttribute(AttributeKey::IS_USEUSE_NAME) === \true) {
return \true;
}
return !$name instanceof FullyQualified;
}
private function isFunctionOrConstantImportWithSingleName(Name $name) : bool
{

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'a01259fbabdd5e7c9a5ee021b619a9305037c736';
public const PACKAGE_VERSION = 'beca17df3f02d9a2a7800e9b238bac3b9c862498';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-06-25 23:41:15';
public const RELEASE_DATE = '2023-06-25 23:48:32';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit7607b56f7ec2ef90cb53cb8b0db6ce58::getLoader();
return ComposerAutoloaderInit6c9499dd0d9c07b7ba7975b1e0a97662::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit7607b56f7ec2ef90cb53cb8b0db6ce58
class ComposerAutoloaderInit6c9499dd0d9c07b7ba7975b1e0a97662
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit7607b56f7ec2ef90cb53cb8b0db6ce58
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit7607b56f7ec2ef90cb53cb8b0db6ce58', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit6c9499dd0d9c07b7ba7975b1e0a97662', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit7607b56f7ec2ef90cb53cb8b0db6ce58', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit6c9499dd0d9c07b7ba7975b1e0a97662', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit7607b56f7ec2ef90cb53cb8b0db6ce58::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit6c9499dd0d9c07b7ba7975b1e0a97662::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit7607b56f7ec2ef90cb53cb8b0db6ce58::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit6c9499dd0d9c07b7ba7975b1e0a97662::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit7607b56f7ec2ef90cb53cb8b0db6ce58
class ComposerStaticInit6c9499dd0d9c07b7ba7975b1e0a97662
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3091,9 +3091,9 @@ class ComposerStaticInit7607b56f7ec2ef90cb53cb8b0db6ce58
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit7607b56f7ec2ef90cb53cb8b0db6ce58::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit7607b56f7ec2ef90cb53cb8b0db6ce58::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit7607b56f7ec2ef90cb53cb8b0db6ce58::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit6c9499dd0d9c07b7ba7975b1e0a97662::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit6c9499dd0d9c07b7ba7975b1e0a97662::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit6c9499dd0d9c07b7ba7975b1e0a97662::$classMap;
}, null, ClassLoader::class);
}