Skip to content

Commit ad5021b

Browse files
committed
build/gen_stub.php: fix collision of namespaced functions
1 parent 06467b9 commit ad5021b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/gen_stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ public function getNonNamespacedName(): string {
793793
}
794794

795795
public function getDeclarationName(): string {
796-
return $this->name->getLast();
796+
return strtr($this->name->toString(), "\\", "_");
797797
}
798798

799799
public function getDeclaration(): string {

0 commit comments

Comments
 (0)