diff --git a/src/ApiRequestProxy.php b/src/ApiRequestProxy.php index 26fbc06..37edbe9 100644 --- a/src/ApiRequestProxy.php +++ b/src/ApiRequestProxy.php @@ -139,6 +139,7 @@ protected function executeApiMethod(string $name, string $method, array $paramet { // If any parameter requires the Pending Request, add it and stop checking the rest. foreach ((new ReflectionMethod($this->api, $method))->getParameters() as $key => $parameter) { + // @phpstan-ignore-next-line if ($parameter->getType()?->getName() === PendingRequest::class) { array_splice($parameters, $key, 0, [$this->getApiRequest()]);