Skip to content

Commit

Permalink
Updated Rector to commit 59d4bca60c0cc1efb8061524e0425454cb432bc8
Browse files Browse the repository at this point in the history
rectorphp/rector-src@59d4bca [PostRector] Handle with FQCN docblock on UnusedImportRemovingPostRector (#6722)
  • Loading branch information
TomasVotruba committed Feb 7, 2025
1 parent ead5e52 commit 20f374a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
3 changes: 3 additions & 0 deletions src/PostRector/Rector/UnusedImportRemovingPostRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 20f374a

Please sign in to comment.