Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Renaming] Skip docblock rename different namespace on RenameClassRector #2419

Merged
merged 18 commits into from
Jun 4, 2022
Merged
Prev Previous commit
Next Next commit
debug
samsonasik committed Jun 4, 2022
commit 264991b7024440ccbeebf3f2ba3b871216f4ae2b
Original file line number Diff line number Diff line change
@@ -132,10 +132,8 @@ private function resolveNamespacedName(PhpParserNode $phpParserNode, string $nam
}
}

if ($namespacedName !== $name) {
$currentNamespace = Strings::before($namespacedName, '\\', -1);

dump($currentNamespace);
if (str_contains($namespacedName, '\\')) {
return $namespacedName;
}

return $name;