Updated Rector to commit 8b7829f77f2393d41ff71a2e0f0504835e22bba2

8b7829f77f [AutoImport] Apply @\ auto import on AnnotationToAttributeRector (#5286)
This commit is contained in:
Tomas Votruba 2023-11-25 10:51:46 +00:00
parent 2591f22d70
commit 9fde5b0ea8
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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
*/