diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index b27f3f23c66..9fe59ceabd9 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = 'ecd8b37aa8ad07d8618606124699175572de63f4'; + public const PACKAGE_VERSION = '59d4bca60c0cc1efb8061524e0425454cb432bc8'; /** * @api * @var string */ - public const RELEASE_DATE = '2025-02-06 23:12:05'; + public const RELEASE_DATE = '2025-02-07 12:56:52'; /** * @var int */ diff --git a/src/PostRector/Rector/UnusedImportRemovingPostRector.php b/src/PostRector/Rector/UnusedImportRemovingPostRector.php index 35f682f41c0..c8f45bd37fa 100644 --- a/src/PostRector/Rector/UnusedImportRemovingPostRector.php +++ b/src/PostRector/Rector/UnusedImportRemovingPostRector.php @@ -169,6 +169,9 @@ private function isUseImportUsed(UseItem $useItem, bool $isCaseSensitive, array } // match partial import foreach ($names as $name) { + if (\strncmp($name, '\\', \strlen('\\')) === 0) { + continue; + } if ($this->isSubNamespace($name, $comparedName, $namespacedPrefix)) { return \true; }