Skip to content

Commit

Permalink
TASK: Adjust to Php 83 parent::__wakeup
Browse files Browse the repository at this point in the history
partial pick from f6e9010
  • Loading branch information
mhsdesign committed Jan 15, 2025
1 parent 1f9ddb6 commit 8abb411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Neos.Flow/Classes/Aop/Builder/ProxyClassBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public function buildProxyClass(string $targetClassName, array $aspectContainers

if (!$this->reflectionService->hasMethod($targetClassName, '__wakeup')) {
$proxyClass->getMethod('__wakeup')->addPostParentCallCode(<<<PHP
if (method_exists(get_parent_class(\$this), '__wakeup') && is_callable('parent::__wakeup')) parent::__wakeup();
if (method_exists(get_parent_class(\$this), '__wakeup') && is_callable([parent::class, '__wakeup'])) parent::__wakeup();
PHP);
}
$proxyClass->addTraits(['\\' . AdvicesTrait::class]);
Expand Down

0 comments on commit 8abb411

Please sign in to comment.