Skip to content

Commit

Permalink
Update payload if condition with count according to php 7.2 version (#38
Browse files Browse the repository at this point in the history
)
  • Loading branch information
akulik authored and edamov committed May 14, 2018
1 parent 6e130d8 commit 27eda7f
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 @@ -348,7 +348,7 @@ public function jsonSerialize()
$payload[self::PAYLOAD_ROOT_KEY][self::PAYLOAD_THREAD_ID_KEY] = $this->threadId;
}

if (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 27eda7f

Please sign in to comment.