Skip to content

Commit

Permalink
deprecated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 15, 2023
1 parent ee3db8d commit 265fdf3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Caching/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 265fdf3

Please sign in to comment.