Skip to content

Commit 78408a4

Browse files
bug symfony#48553 [VarExporter] Fix calling parent::__wakeup() when unserializing with LazyProxyTrait (azjezz)
This PR was merged into the 6.2 branch. Discussion ---------- [VarExporter] Fix calling `parent::__wakeup()` when unserializing with LazyProxyTrait | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | N.A | License | MIT | Doc PR | N.A `parent:` was getting parsed as a goto label, and `__wakeup()` as a function call. this would result in a runtime error once this code branch is reached. ref: https://twitter.com/azjezz/status/1600870101606989824 Note: i didn't run into this at runtime, so i have no idea how to reach this code branch to test it. Commits ------- d2a5592 chore: fix syntax error
2 parents 0d95f41 + d2a5592 commit 78408a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/VarExporter/LazyProxyTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public function __unserialize(array $data): void
337337
PublicHydrator::hydrate($this, $data);
338338

339339
if (Registry::$parentMethods[$class]['wakeup']) {
340-
parent:__wakeup();
340+
parent::__wakeup();
341341
}
342342
}
343343
}

0 commit comments

Comments
 (0)