mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-17 22:09:44 +01:00
Updated Rector to commit 8b7829f77f2393d41ff71a2e0f0504835e22bba2
8b7829f77f
[AutoImport] Apply @\ auto import on AnnotationToAttributeRector (#5286)
This commit is contained in:
parent
2591f22d70
commit
9fde5b0ea8
@ -27,10 +27,14 @@ final class AttributeNameFactory
|
||||
*/
|
||||
public function create(AnnotationToAttributeInterface $annotationToAttribute, DoctrineAnnotationTagValueNode $doctrineAnnotationTagValueNode, array $uses)
|
||||
{
|
||||
// A. attribute and class name are the same, so we re-use the short form to keep code compatible with previous one
|
||||
// A. attribute and class name are the same, so we re-use the short form to keep code compatible with previous one,
|
||||
// except start with \
|
||||
if ($annotationToAttribute->getAttributeClass() === $annotationToAttribute->getTag()) {
|
||||
$attributeName = $doctrineAnnotationTagValueNode->identifierTypeNode->name;
|
||||
$attributeName = \ltrim($attributeName, '@');
|
||||
if (\strncmp($attributeName, '\\', \strlen('\\')) === 0) {
|
||||
return new FullyQualified(\ltrim($attributeName, '\\'));
|
||||
}
|
||||
return new Name($attributeName);
|
||||
}
|
||||
// B. different name
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '3f42ee98ffefc73677b93308fe53508bd260a574';
|
||||
public const PACKAGE_VERSION = '8b7829f77f2393d41ff71a2e0f0504835e22bba2';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-11-25 11:54:21';
|
||||
public const RELEASE_DATE = '2023-11-25 17:49:41';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user