Skip to content

Commit

Permalink
Replace is_countable function (#59)
Browse files Browse the repository at this point in the history
Fix #58
  • Loading branch information
edamov authored May 9, 2019
1 parent 7fdfd1e commit 1e86c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Payload.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public function jsonSerialize()
$payload[self::PAYLOAD_ROOT_KEY][self::PAYLOAD_THREAD_ID_KEY] = $this->threadId;
}

if (is_countable($this->customValues) && count($this->customValues)) {
if ((is_array($this->customValues) || $this->customValues instanceof Countable) && count($this->customValues)) {
$payload = array_merge($payload, $this->customValues);
}

Expand Down

0 comments on commit 1e86c31

Please sign in to comment.