Skip to content

Commit b9c326f

Browse files
pnuEvan Sims
and
Evan Sims
authored
fix declaration of expiresAt (#874)
Co-authored-by: Evan Sims <[email protected]>
1 parent 4694a4d commit b9c326f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cache/WpObjectCacheItem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function set(mixed $value): static
4242
return $this;
4343
}
4444

45-
public function expiresAt(?\DateTimeInterface $expiration)
45+
public function expiresAt(?\DateTimeInterface $expiration): static
4646
{
4747
if ($expiration instanceof DateTimeInterface) {
4848
$this->expires = $expiration->getTimestamp();

0 commit comments

Comments
 (0)