Skip to content

Commit 012d199

Browse files
author
Anton
authored
Merge pull request #479 from bluzphp/develop
HotFix for Cache
2 parents 78e0944 + 21b0bb5 commit 012d199

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Proxy/Cache.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public static function set(string $key, $data, int $ttl = self::TTL_NO_EXPIRY, a
144144
}
145145

146146
if (!empty($tags)) {
147-
$item->setTags($tags);
147+
$item->tag($tags);
148148
}
149149

150150
return $cache->save($item);
@@ -174,7 +174,6 @@ public static function prepare(string $key): string
174174
* @param string $tag
175175
*
176176
* @return bool
177-
* @throws InvalidArgumentException
178177
*/
179178
public static function clearTag(string $tag): bool
180179
{
@@ -190,7 +189,6 @@ public static function clearTag(string $tag): bool
190189
* @param array $tags
191190
*
192191
* @return bool
193-
* @throws InvalidArgumentException
194192
*/
195193
public static function clearTags(array $tags): bool
196194
{

0 commit comments

Comments
 (0)