Skip to content

Commit

Permalink
Update ItemInterface.php
Browse files Browse the repository at this point in the history
phpdoc for ItemInterface::lock() should probably be ?int not null.
  • Loading branch information
DavidGoodwin authored Apr 20, 2024
1 parent 6f66c55 commit 2296ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stash/Interfaces/ItemInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2296ff9

Please sign in to comment.