diff --git a/src/WebPush.php b/src/WebPush.php index 0fdb794..62ae942 100644 --- a/src/WebPush.php +++ b/src/WebPush.php @@ -286,7 +286,7 @@ protected function prepare(array $notifications): array $content = ''; } - $headers['TTL'] = $options['TTL']; + $headers['TTL'] = (string) $options['TTL']; if (isset($options['urgency'])) { $headers['Urgency'] = $options['urgency'];