Skip to content

Commit

Permalink
Updated Rector to commit 4a94d2e5049deffdfe4b5ce2597845ad1b4a0016
Browse files Browse the repository at this point in the history
rectorphp/rector-src@4a94d2e [PostRector] Allow remove unused use on conflict short name aliased on UnusedmportRemovingPostRector (#6292)
  • Loading branch information
TomasVotruba committed Sep 5, 2024
1 parent 1e87674 commit 99b1eff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 = 'cb96062f3cd5891fd89b419eebdd762061e82f85';
public const PACKAGE_VERSION = '4a94d2e5049deffdfe4b5ce2597845ad1b4a0016';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-09-05 22:08:54';
public const RELEASE_DATE = '2024-09-06 06:43:14';
/**
* @var int
*/
Expand Down
2 changes: 1 addition & 1 deletion src/PostRector/Rector/UnusedImportRemovingPostRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private function resolveAliasName(UseUse $useUse) : ?string
*/
private function isUseImportUsed(UseUse $useUse, array $names, ?Name $namespaceName) : bool
{
$comparedName = $useUse->name->toString();
$comparedName = $useUse->alias instanceof Identifier ? $useUse->alias->toString() : $useUse->name->toString();
if (\in_array($comparedName, $names, \true)) {
return \true;
}
Expand Down

0 comments on commit 99b1eff

Please sign in to comment.