Skip to content

Commit fc50089

Browse files
committed
Fix Type convertToSeconds()
1 parent 615e15d commit fc50089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Psr16/BaseCacheEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected function addToNow(DateInterval|int|null $ttl): int|null
8181
/**
8282
* @throws InvalidArgumentException
8383
*/
84-
protected function convertToSeconds(DateInterval|int $ttl)
84+
protected function convertToSeconds(DateInterval|int|null $ttl): DateInterval|int|null
8585
{
8686
if (empty($ttl) || is_numeric($ttl)) {
8787
return $ttl;

0 commit comments

Comments
 (0)