Skip to content

Commit 4393f18

Browse files
authored
Merge pull request #164 from jolamar/fix/timestamp-type
timestamp should be an int not a double
2 parents 4f5f7d2 + 0cdd8a5 commit 4393f18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Payload.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,11 +676,11 @@ public function jsonSerialize(): array
676676
$payload[self::PAYLOAD_ROOT_KEY]->{self::PAYLOAD_EVENT_KEY} = $this->event;
677677
}
678678

679-
if (is_double($this->staleDate)) {
679+
if (is_int($this->staleDate)) {
680680
$payload[self::PAYLOAD_ROOT_KEY]->{self::PAYLOAD_STALE_DATE_KEY} = $this->staleDate;
681681
}
682682

683-
if (is_double($this->timestamp)) {
683+
if (is_int($this->timestamp)) {
684684
$payload[self::PAYLOAD_ROOT_KEY]->{self::PAYLOAD_TIMESTAMP_KEY} = $this->timestamp;
685685
}
686686

0 commit comments

Comments
 (0)