Skip to content

Commit 305331c

Browse files
committed
refactor: add native return type for deleteMatching in CacheInterface
1 parent b2c0a49 commit 305331c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

system/Cache/CacheInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ public function delete(string $key);
5555
* Deletes items from the cache store matching a given pattern.
5656
*
5757
* @param string $pattern Cache items glob-style pattern
58-
*
59-
* @return int
58+
*
59+
* @return int Number of deleted items
6060
*/
61-
public function deleteMatching(string $pattern);
61+
public function deleteMatching(string $pattern): int;
6262

6363
/**
6464
* Performs atomic incrementation of a raw stored value.

0 commit comments

Comments
 (0)