File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,10 @@ protected function isFuture(int $timestamp): bool
6161 * - DateTime: The value will be used as expiration date
6262 * - int: The expiration time will be set to X days from now
6363 *
64- * @return string
64+ * @return int
6565 * @throws \Dreamonkey\CloudFrontUrlSigner\Exceptions\InvalidExpiration
6666 */
67- protected function getExpirationTimestamp ($ expiration ): string
67+ protected function getExpirationTimestamp ($ expiration ): int
6868 {
6969 if (is_int ($ expiration )) {
7070 $ expiration = (new DateTime ())->modify ((int )$ expiration . ' days ' );
@@ -78,6 +78,6 @@ protected function getExpirationTimestamp($expiration): string
7878 throw new InvalidExpiration ('Expiration date must be in the future ' );
7979 }
8080
81- return ( string ) $ expiration ->getTimestamp ();
81+ return $ expiration ->getTimestamp ();
8282 }
8383}
You can’t perform that action at this time.
0 commit comments