We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6881082 + 717e754 commit 422b8deCopy full SHA for 422b8de
ProxyHelper.php
@@ -79,7 +79,9 @@ public static function generateLazyGhost(\ReflectionClass $class): string
79
$hooks .= "\n "
80
.($p->isProtected() ? 'protected' : 'public')
81
.($p->isProtectedSet() ? ' protected(set)' : '')
82
- ." {$type} \${$name} {\n";
+ ." {$type} \${$name}"
83
+ .($p->hasDefaultValue() ? ' = '.$p->getDefaultValue() : '')
84
+ ." {\n";
85
86
foreach ($p->getHooks() as $hook => $method) {
87
if ('get' === $hook) {
0 commit comments