Skip to content

Commit 6d25a23

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: docs: Update @param for $match to reflect the correct default value. [Validator] add pl translation for the Twig constraint dump default value for property hooks if present
2 parents 500451a + 422b8de commit 6d25a23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ProxyHelper.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ public static function generateLazyGhost(\ReflectionClass $class): string
8585
$hooks .= "\n "
8686
.($p->isProtected() ? 'protected' : 'public')
8787
.($p->isProtectedSet() ? ' protected(set)' : '')
88-
." {$type} \${$name} {\n";
88+
." {$type} \${$name}"
89+
.($p->hasDefaultValue() ? ' = '.$p->getDefaultValue() : '')
90+
." {\n";
8991

9092
foreach ($p->getHooks() as $hook => $method) {
9193
if ('get' === $hook) {

0 commit comments

Comments
 (0)