Skip to content

Commit a5915cb

Browse files
committed
Updated Rector to commit a30656b1054f2b418c84f448775f3e2033b95797
rectorphp/rector-src@a30656b [PhpAttribute] Handle multi double colon on AnnotationWithValueToAttributeRector (#6851)
1 parent af3c333 commit a5915cb

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '644c3f40d7bc1a2d56e1f470ad84130eb69ddaeb';
22+
public const PACKAGE_VERSION = 'a30656b1054f2b418c84f448775f3e2033b95797';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-04-19 07:59:37';
27+
public const RELEASE_DATE = '2025-04-19 14:12:52';
2828
/**
2929
* @var int
3030
*/

src/PhpAttribute/AnnotationToAttributeMapper/ClassConstFetchAnnotationToAttributeMapper.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ public function isCandidate($value) : bool
3333
*/
3434
public function map($value) : Node
3535
{
36-
[$class, $constant] = \explode('::', $value);
36+
$values = \explode('::', $value);
37+
if (\count($values) !== 2) {
38+
return new String_($value);
39+
}
40+
[$class, $constant] = $values;
3741
if ($class === '') {
3842
return new String_($value);
3943
}

0 commit comments

Comments
 (0)