Skip to content

Commit dea16e7

Browse files
authored
Merge pull request #33 from php-api-clients/deal-with-$-in-property-name
Deal with $ in property name
2 parents f90470b + 2ccc400 commit dea16e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Generator/Schema.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ public static function generate(string $name, string $namespace, string $classNa
5757
'@',
5858
'+',
5959
'-',
60+
'$',
6061
], [
6162
'_AT_',
6263
'_PLUSES_',
6364
'_MINUS_',
65+
'',
6466
], $propertyName);
6567
$propertyStmt = $factory->property($propertyName)->makePrivate();
6668
$propertyDocBlock = [];

0 commit comments

Comments
 (0)