Skip to content

Commit cc44de4

Browse files
committed
Add deprecation note
1 parent 31bc54d commit cc44de4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Cache.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ public function __construct(CacheManager $cache, $tags, $expires = 30)
3434
{
3535
$this->cache = $tags ? $cache->tags($tags) : $cache;
3636
$this->expires = $expires;
37-
3837
}
3938

40-
/** @internal */
41-
public function setPrefix(?string $prefix = null)
39+
/**
40+
* @internal A hack to support prefixes. Added as a setter to avoid BC breaks.
41+
* @deprecated Will be removed in v2.0
42+
*/
43+
public function setPrefix(?string $prefix = null): void
4244
{
4345
$this->prefix = (string) $prefix;
4446
}

0 commit comments

Comments
 (0)