Skip to content

Commit f2658f5

Browse files
committed
replace " with ' on default values
1 parent ca93f15 commit f2658f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Make/MakeFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ protected function getConstructor(): array
228228
continue;
229229
}
230230

231+
$defaultValuePostfix = str_replace('"', '\'', $defaultValuePostfix);
232+
231233
$lines[] = static::FILE_INTEND . "\$this->{$property->getName()} = {$defaultValuePostfix};";
232234
}
233235

0 commit comments

Comments
 (0)