We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 615e15d commit fc50089Copy full SHA for fc50089
src/Psr16/BaseCacheEngine.php
@@ -81,7 +81,7 @@ protected function addToNow(DateInterval|int|null $ttl): int|null
81
/**
82
* @throws InvalidArgumentException
83
*/
84
- protected function convertToSeconds(DateInterval|int $ttl)
+ protected function convertToSeconds(DateInterval|int|null $ttl): DateInterval|int|null
85
{
86
if (empty($ttl) || is_numeric($ttl)) {
87
return $ttl;
0 commit comments