8000 chore: fix syntax error · jeremyFreeAgent/symfony@d2a5592 · GitHub
[go: up one dir, main page]

Skip to content

Commit d2a5592

Browse files
authored
chore: fix syntax error
`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
1 parent 0d95f41 commit d2a5592

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)
0