Skip to content

Commit

Permalink
Fix Type convertToSeconds()
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Apr 10, 2024
1 parent 615e15d commit fc50089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psr16/BaseCacheEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected function addToNow(DateInterval|int|null $ttl): int|null
/**
* @throws InvalidArgumentException
*/
protected function convertToSeconds(DateInterval|int $ttl)
protected function convertToSeconds(DateInterval|int|null $ttl): DateInterval|int|null
{
if (empty($ttl) || is_numeric($ttl)) {
return $ttl;
Expand Down

0 comments on commit fc50089

Please sign in to comment.