Skip to content

Commit

Permalink
Fix HookManagerInterface annotation (#1395)
Browse files Browse the repository at this point in the history
* Align OpenTelemetry\API\Instrumentation\AutoInstrumentation\HookManagerInterface::hook signatures with OpenTelemetry\Instrumentation\hook.

Co-authored-by: Tobias Bachert <git@b-privat.de>
  • Loading branch information
ChrisLightfootWild and Nevay authored Oct 5, 2024
1 parent 0ae2723 commit cd8c0e3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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|void) $postHook
*/
public function hook(?string $class, string $function, ?Closure $preHook = null, ?Closure $postHook = null): void;
}

0 comments on commit cd8c0e3

Please sign in to comment.