diff --git a/src/Proxy/Cache.php b/src/Proxy/Cache.php index 8866a70e..3848a404 100644 --- a/src/Proxy/Cache.php +++ b/src/Proxy/Cache.php @@ -144,7 +144,7 @@ public static function set(string $key, $data, int $ttl = self::TTL_NO_EXPIRY, a } if (!empty($tags)) { - $item->setTags($tags); + $item->tag($tags); } return $cache->save($item); @@ -174,7 +174,6 @@ public static function prepare(string $key): string * @param string $tag * * @return bool - * @throws InvalidArgumentException */ public static function clearTag(string $tag): bool { @@ -190,7 +189,6 @@ public static function clearTag(string $tag): bool * @param array $tags * * @return bool - * @throws InvalidArgumentException */ public static function clearTags(array $tags): bool {