From 2296ff9b140e5924f5db6f1013b929321d1dd192 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sat, 20 Apr 2024 10:51:39 +0100 Subject: [PATCH] Update ItemInterface.php phpdoc for ItemInterface::lock() should probably be ?int not null. --- src/Stash/Interfaces/ItemInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stash/Interfaces/ItemInterface.php b/src/Stash/Interfaces/ItemInterface.php index 2ef1475a..66494e04 100644 --- a/src/Stash/Interfaces/ItemInterface.php +++ b/src/Stash/Interfaces/ItemInterface.php @@ -88,7 +88,7 @@ public function isMiss(): bool; * Enables stampede protection by marking this specific instance of the Item * as the one regenerating the cache. * - * @param null $ttl + * @param ?int $ttl * @return bool */ public function lock(int $ttl = null): bool;