Skip to content

Commit 149421b

Browse files
committed
Fix sprintf() expecting an int, but giving it a string
1 parent b58d495 commit 149421b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Firebase/Messaging/AndroidConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ private static function ensureValidTtl($value): string
268268
}
269269

270270
if (preg_match('/^\d+$/', $value) === 1) {
271-
return sprintf('%ds', $value);
271+
return sprintf('%ss', $value);
272272
}
273273

274274
if (preg_match($expectedPattern, $value) === 1) {

0 commit comments

Comments
 (0)