mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 9ddef0001c3b7251f80e0c06d6ef0d35363a7cd4
9ddef0001c
[Php80] Allow subnamespace from use statements support on AnnotationToAttributeRector (#5287)
This commit is contained in:
parent
9fde5b0ea8
commit
c581b77bce
|
@ -71,6 +71,11 @@ final class UseImportNameMatcher
|
|||
throw new ShouldNotHappenException();
|
||||
}
|
||||
if (!$originalUseUseNode->alias instanceof Identifier) {
|
||||
$lastName = $originalUseUseNode->name->getLast();
|
||||
if (\strncmp($tag, $lastName . '\\', \strlen($lastName . '\\')) === 0) {
|
||||
$tagName = Strings::after($tag, '\\');
|
||||
return $prefix . $originalUseUseNode->name->toString() . '\\' . $tagName;
|
||||
}
|
||||
return $prefix . $originalUseUseNode->name->toString();
|
||||
}
|
||||
$unaliasedShortClass = Strings::substring($tag, \strlen($originalUseUseNode->alias->toString()));
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '8b7829f77f2393d41ff71a2e0f0504835e22bba2';
|
||||
public const PACKAGE_VERSION = '9ddef0001c3b7251f80e0c06d6ef0d35363a7cd4';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-11-25 17:49:41';
|
||||
public const RELEASE_DATE = '2023-11-25 22:14:15';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue