From 2061923648d918c0717a1dee316fbfbb4f2bbd23 Mon Sep 17 00:00:00 2001 From: Chris Lightfoot-Wild Date: Thu, 3 Oct 2024 00:16:08 +0100 Subject: [PATCH] Align OpenTelemetry\API\Instrumentation\AutoInstrumentation\HookManagerInterface::hook signatures with OpenTelemetry\Instrumentation\hook. --- .../AutoInstrumentation/HookManagerInterface.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }