diff --git a/src/Service/WrapperFactory.php b/src/Service/WrapperFactory.php index 963e779..c8dbd91 100644 --- a/src/Service/WrapperFactory.php +++ b/src/Service/WrapperFactory.php @@ -57,7 +57,12 @@ public function () $f = fn() => parent::(); $args = func_get_args(); - foreach ($this->__handlers[''] ?? [] as [$handler, $annotation]) { + foreach ($this->__handlers[''] ?? [] as &$h) { + [$handler, $annotation] = $h; + if (is_string($annotation)) { + $annotation = unserialize($annotation); + $h[1] = $annotation; + } $f = $handler->handle($f, __METHOD__, $args, $annotation); } $f();