Skip to content

Commit

Permalink
[2.x] Should fix Static Analysis.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter committed Mar 14, 2024
1 parent bd2784b commit 4e57516
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ApiRequestProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()]);

Expand Down

0 comments on commit 4e57516

Please sign in to comment.