diff --git a/src/API/Instrumentation/AutoInstrumentation/HookManagerInterface.php b/src/API/Instrumentation/AutoInstrumentation/HookManagerInterface.php index 29e11da7b..b4c9c108f 100644 --- a/src/API/Instrumentation/AutoInstrumentation/HookManagerInterface.php +++ b/src/API/Instrumentation/AutoInstrumentation/HookManagerInterface.php @@ -9,10 +9,9 @@ interface HookManagerInterface { - /** - * @param Closure(object|string|null,array,string,string,string|null,int|null):void|null $preHook - * @param Closure(object|string|null,array,mixed,Throwable|null,string,string,string|null,int|null):void|null $postHook + * @param ?Closure(object|string|null, array, ?string, string, ?string, ?int): (array|null|void) $preHook + * @param ?Closure(object|string|null, array, mixed, ?Throwable): mixed $postHook */ public function hook(?string $class, string $function, ?Closure $preHook = null, ?Closure $postHook = null): void; }