Skip to content

Commit 8b1bce2

Browse files
Merge branch '5.4' into 6.0
* 5.4: [HttpKernel] Fix a PHP 8.1 deprecation notice in HttpCache Add an invariable word in french [Serializer] Fix denormalization union types with constructor
2 parents 8c338d6 + 4e46b3a commit 8b1bce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HttpCache/HttpCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ private function mayServeStaleWhileRevalidate(Response $entry): bool
694694
$timeout = $this->options['stale_while_revalidate'];
695695
}
696696

697-
return abs($entry->getTtl()) < $timeout;
697+
return abs($entry->getTtl() ?? 0) < $timeout;
698698
}
699699

700700
/**

0 commit comments

Comments
 (0)