From f7716b89c984ba5ec965ddf8a83aabbe28946566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kubie=C5=84?= Date: Sun, 5 Jul 2026 02:23:43 +0200 Subject: [PATCH] Cast TTL option to string in headers --- src/WebPush.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'];