diff --git a/src/Payload.php b/src/Payload.php index f49f8bb..e02dd83 100644 --- a/src/Payload.php +++ b/src/Payload.php @@ -676,11 +676,11 @@ public function jsonSerialize(): array $payload[self::PAYLOAD_ROOT_KEY]->{self::PAYLOAD_EVENT_KEY} = $this->event; } - if (is_double($this->staleDate)) { + if (is_int($this->staleDate)) { $payload[self::PAYLOAD_ROOT_KEY]->{self::PAYLOAD_STALE_DATE_KEY} = $this->staleDate; } - if (is_double($this->timestamp)) { + if (is_int($this->timestamp)) { $payload[self::PAYLOAD_ROOT_KEY]->{self::PAYLOAD_TIMESTAMP_KEY} = $this->timestamp; }