Fix HookManagerInterface annotation #2773
Annotations
5 errors
Run Phpstan:
src/API/Instrumentation/AutoInstrumentation/HookManagerInterface.php#L16
PHPDoc tag @param has invalid value ((object|string|null,array,?string,string,?string,?int):array|null $preHook): Unexpected token "|", expected variable at offset 86
|
Run Phpstan
Process completed with exit code 1.
|
Post Run gacts/run-and-post-run@v1
One or more steps failed
|
Run Psalm:
examples/src/ExampleInstrumentation.php#L30
examples/src/ExampleInstrumentation.php:30:13: InvalidArgument: Argument 3 of OpenTelemetry\API\Instrumentation\AutoInstrumentation\HookManagerInterface::hook expects Closure(null|object|string, array<array-key, mixed>, null|string, string, null|string, int|null):array<array-key, mixed>|null, but impure-Closure():void provided (see https://psalm.dev/004)
|
Run Psalm
Process completed with exit code 2.
|
Loading