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 8a856db
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 $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;

Check failure on line 16 in src/API/Instrumentation/AutoInstrumentation/HookManagerInterface.php

View workflow job for this annotation

GitHub Actions / php (8.4, true, --ignore-platform-reqs)

PHPDoc tag @param has invalid value ((object|string|null,array,?string,string,?string,?int):array|null $preHook): Unexpected token "|", expected variable at offset 86
}

0 comments on commit 8a856db

Please sign in to comment.