Skip to content

Commit

Permalink
Merge e83c202 into 743397b
Browse files Browse the repository at this point in the history
  • Loading branch information
steveeakin committed Apr 13, 2021
2 parents 743397b + e83c202 commit 5c56eee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Payload.php
Expand Up @@ -466,7 +466,11 @@ public function jsonSerialize()
}

if (is_array($this->urlArgs)) {
$payload[self::PAYLOAD_ROOT_KEY]->{self::PAYLOAD_URL_ARGS_KEY} = $this->urlArgs;
$payload[self::PAYLOAD_ROOT_KEY]->{self::PAYLOAD_URL_ARGS_KEY} = [];

foreach ($this->urlArgs as $key => $arg) {
$payload[self::PAYLOAD_ROOT_KEY]->{self::PAYLOAD_URL_ARGS_KEY}[] = $arg;
}
}

if (is_countable($this->customValues) && count($this->customValues)) {
Expand Down

0 comments on commit 5c56eee

Please sign in to comment.