From 93f335ffec87334e94819afd4d5e7780fb096a65 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Fri, 13 Jan 2023 04:48:57 +0100 Subject: [PATCH] deprecated stuff --- src/Caching/Cache.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Caching/Cache.php b/src/Caching/Cache.php index 99e5956..13b480a 100644 --- a/src/Caching/Cache.php +++ b/src/Caching/Cache.php @@ -66,9 +66,7 @@ class Cache public const ALL = self::All; /** @internal */ - public const - NamespaceSeparator = "\x00", - NAMESPACE_SEPARATOR = self::NamespaceSeparator; + public const NamespaceSeparator = "\x00"; private Storage $storage; private string $namespace; @@ -348,6 +346,7 @@ public function capture(mixed $key): ?OutputHelper */ public function start($key): ?OutputHelper { + trigger_error(__METHOD__ . '() was renamed to capture()', E_USER_DEPRECATED); return $this->capture($key); }