Skip to content

Commit 20f374a

Browse files
committed
Updated Rector to commit 59d4bca60c0cc1efb8061524e0425454cb432bc8
rectorphp/rector-src@59d4bca [PostRector] Handle with FQCN docblock on UnusedImportRemovingPostRector (#6722)
1 parent ead5e52 commit 20f374a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
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 = 'ecd8b37aa8ad07d8618606124699175572de63f4';
22+
public const PACKAGE_VERSION = '59d4bca60c0cc1efb8061524e0425454cb432bc8';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-02-06 23:12:05';
27+
public const RELEASE_DATE = '2025-02-07 12:56:52';
2828
/**
2929
* @var int
3030
*/

src/PostRector/Rector/UnusedImportRemovingPostRector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ private function isUseImportUsed(UseItem $useItem, bool $isCaseSensitive, array
169169
}
170170
// match partial import
171171
foreach ($names as $name) {
172+
if (\strncmp($name, '\\', \strlen('\\')) === 0) {
173+
continue;
174+
}
172175
if ($this->isSubNamespace($name, $comparedName, $namespacedPrefix)) {
173176
return \true;
174177
}

0 commit comments

Comments
 (0)