Skip to content

Commit

Permalink
uppercase constants marked as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 14, 2022
1 parent 940e7d3 commit a936ed3
Showing 1 changed file with 33 additions and 15 deletions.
48 changes: 33 additions & 15 deletions src/Caching/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,41 @@ class Cache
Namespaces = 'namespaces',
All = 'all';

public const
PRIORITY = self::Priority,
EXPIRATION = self::Expire,
EXPIRE = self::Expire,
SLIDING = self::Sliding,
TAGS = self::Tags,
FILES = self::Files,
ITEMS = self::Items,
CONSTS = self::Constants,
CALLBACKS = self::Callbacks,
NAMESPACES = self::Namespaces,
ALL = self::All;
/** @deprecated use Cache::Priority */
public const PRIORITY = self::Priority;

/** @deprecated use Cache::Expire */
public const EXPIRATION = self::Expire;

/** @deprecated use Cache::Expire */
public const EXPIRE = self::Expire;

/** @deprecated use Cache::Sliding */
public const SLIDING = self::Sliding;

/** @deprecated use Cache::Tags */
public const TAGS = self::Tags;

/** @deprecated use Cache::Files */
public const FILES = self::Files;

/** @deprecated use Cache::Items */
public const ITEMS = self::Items;

/** @deprecated use Cache::Constants */
public const CONSTS = self::Constants;

/** @deprecated use Cache::Callbacks */
public const CALLBACKS = self::Callbacks;

/** @deprecated use Cache::Namespaces */
public const NAMESPACES = self::Namespaces;

/** @deprecated use Cache::All */
public const ALL = self::All;

/** @internal */
public const
NamespaceSeparator = "\x00",
NAMESPACE_SEPARATOR = self::NamespaceSeparator;
public const NamespaceSeparator = "\x00";

private Storage $storage;

Expand Down

0 comments on commit a936ed3

Please sign in to comment.