Skip to content

Commit bfc18fe

Browse files
Fix ETag cache PHPStan return type
1 parent e0492c5 commit bfc18fe

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/AbstractCachePlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ private function calculateCacheItemExpiresAfter(?int $maxAge): ?int
209209
*
210210
* @return int|null Unix system time. A null value means that the response expires when the cache item expires
211211
*/
212-
protected function calculateResponseExpiresAt(?int $maxAge): ?int
212+
protected function calculateResponseExpiresAt(?int $maxAge)
213213
{
214214
if (null === $maxAge) {
215215
return null;

src/EtagCachePlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static function serverCache(CacheItemPoolInterface $pool, StreamFactoryIn
4141
return new self($pool, $streamFactory, $config);
4242
}
4343

44-
protected function calculateResponseExpiresAt(?int $maxAge): ?int
44+
protected function calculateResponseExpiresAt(?int $maxAge)
4545
{
4646
return 0;
4747
}

0 commit comments

Comments
 (0)