Skip to content

Commit aa82a78

Browse files
committed
fix phpstan level 3
1 parent 664c7fd commit aa82a78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/CachePlugin.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ protected function doHandleRequest(RequestInterface $request, callable $next, ca
222222
private function calculateCacheItemExpiresAfter($maxAge)
223223
{
224224
if (null === $this->config['cache_lifetime'] && null === $maxAge) {
225-
return;
225+
return null;
226226
}
227227

228228
return $this->config['cache_lifetime'] + $maxAge;
@@ -239,7 +239,7 @@ private function calculateCacheItemExpiresAfter($maxAge)
239239
private function calculateResponseExpiresAt($maxAge)
240240
{
241241
if (null === $maxAge) {
242-
return;
242+
return null;
243243
}
244244

245245
return time() + $maxAge;
@@ -430,7 +430,7 @@ private function getModifiedSinceHeaderValue(CacheItemInterface $cacheItem)
430430
$data = $cacheItem->get();
431431
// The isset() is to be removed in 2.0.
432432
if (!isset($data['createdAt'])) {
433-
return;
433+
return null;
434434
}
435435

436436
$modified = new \DateTime('@'.$data['createdAt']);

0 commit comments

Comments
 (0)