Skip to content

Commit 36fcfd8

Browse files
Merge branch '6.0' into 6.1
* 6.0: [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 4421fa4 + 8b1bce2 commit 36fcfd8

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
@@ -692,7 +692,7 @@ private function mayServeStaleWhileRevalidate(Response $entry): bool
692692
$timeout = $this->options['stale_while_revalidate'];
693693
}
694694

695-
return abs($entry->getTtl()) < $timeout;
695+
return abs($entry->getTtl() ?? 0) < $timeout;
696696
}
697697

698698
/**

0 commit comments

Comments
 (0)