Skip to content

Commit e93af17

Browse files
authored
Cast TTL option to string in headers (#456)
1 parent a687b43 commit e93af17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/WebPush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ protected function prepare(array $notifications): array
286286
$content = '';
287287
}
288288

289-
$headers['TTL'] = $options['TTL'];
289+
$headers['TTL'] = (string) $options['TTL'];
290290

291291
if (isset($options['urgency'])) {
292292
$headers['Urgency'] = $options['urgency'];

0 commit comments

Comments
 (0)