Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Jan 15, 2025
1 parent 5a32195 commit bef7530
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,16 @@ private function removeTestmode(PendingRequest $pendingRequest): void
$pendingRequest->query()->remove('testmode');
}

if ($pendingRequest->getRequest() instanceof SupportsTestmodeInPayload) {
$pendingRequest->payload()?->remove('testmode');
if (!$pendingRequest->getRequest() instanceof SupportsTestmodeInPayload) {
return;
}

$payload = $pendingRequest->payload();

if ($payload === null) {
return;
}

$payload->remove('testmode');
}
}

0 comments on commit bef7530

Please sign in to comment.