Skip to content

Commit 2ccc400

Browse files
committed
Deal with $ in property name
1 parent f90470b commit 2ccc400

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)