Skip to content

Commit f280037

Browse files
Fix HookManagerInterface annotation (#1395)
* Align OpenTelemetry\API\Instrumentation\AutoInstrumentation\HookManagerInterface::hook signatures with OpenTelemetry\Instrumentation\hook. Co-authored-by: Tobias Bachert <[email protected]>
1 parent 62f2abc commit f280037

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Instrumentation/AutoInstrumentation/HookManagerInterface.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99

1010
interface HookManagerInterface
1111
{
12-
1312
/**
14-
* @param Closure(object|string|null,array,string,string,string|null,int|null):void|null $preHook
15-
* @param Closure(object|string|null,array,mixed,Throwable|null,string,string,string|null,int|null):void|null $postHook
13+
* @param ?Closure(object|string|null, array, ?string, string, ?string, ?int): (array|null|void) $preHook
14+
* @param ?Closure(object|string|null, array, mixed, ?Throwable): (mixed|void) $postHook
1615
*/
1716
public function hook(?string $class, string $function, ?Closure $preHook = null, ?Closure $postHook = null): void;
1817
}

0 commit comments

Comments
 (0)