Skip to content

Commit

Permalink
verify short name
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jan 18, 2025
1 parent 2b4016b commit fcad8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/CodingStyle/Application/UseImportsAdder.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private function getNamespaceName(Namespace_ $namespace): ?string
return $namespace->name->toString();
}

private function isCurrentNamespace(string $namespaceName, ObjectType $objectType): bool
private function isCurrentNamespace(string $namespaceName, AliasedObjectType|FullyQualifiedObjectType $objectType): bool
{
if (! str_starts_with($objectType->getClassName(), $namespaceName . '\\')) {
return false;
Expand Down

0 comments on commit fcad8ad

Please sign in to comment.