Skip to content

Commit

Permalink
Align OpenTelemetry\API\Instrumentation\AutoInstrumentation\HookManag…
Browse files Browse the repository at this point in the history
…erInterface::hook signatures with OpenTelemetry\Instrumentation\hook.
  • Loading branch information
ChrisLightfootWild committed Oct 3, 2024
1 parent 0ae2723 commit 2061923
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 $postHook
*/
public function hook(?string $class, string $function, ?Closure $preHook = null, ?Closure $postHook = null): void;
}

0 comments on commit 2061923

Please sign in to comment.