Skip to content

Commit dd70c7e

Browse files
authored
Merge pull request #18 from php-api-clients/clear-$-from-class-name
Clear $ from class name
2 parents d92441a + bf13154 commit dd70c7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function generate(string $namespace, string $destinationPath)
8787

8888
private function className(string $className): string
8989
{
90-
return str_replace(['{', '}', '-'], ['Cb', 'Rcb', 'Dash'], (new Convert($className))->toPascal());
90+
return str_replace(['{', '}', '-', '$'], ['Cb', 'Rcb', 'Dash', '_'], (new Convert($className))->toPascal());
9191
}
9292

9393
private function cleanUpNamespace(string $namespace): string

0 commit comments

Comments
 (0)