| @@ -31,9 +31,9 @@ | ||
| 31 | 31 | * |
| 32 | 32 | * @return string |
| 33 | 33 | * The key string for this cache item. |
| 34 | 34 | */ |
| 35 | - public function getKey(): string; | |
| 35 | + public function getKey(); | |
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * Retrieves the value of the item from the cache associated with this object's key. |
| 39 | 39 | * |
| @@ -45,9 +45,9 @@ | ||
| 45 | 45 | * |
| 46 | 46 | * @return mixed |
| 47 | 47 | * The value corresponding to this cache item's key, or null if not found. |
| 48 | 48 | */ |
| 49 | - public function get(): mixed; | |
| 49 | + public function get(); | |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * Confirms if the cache item lookup resulted in a cache hit. |
| 53 | 53 | * |
| @@ -56,9 +56,9 @@ | ||
| 56 | 56 | * |
| 57 | 57 | * @return bool |
| 58 | 58 | * True if the request resulted in a cache hit. False otherwise. |
| 59 | 59 | */ |
| 60 | - public function isHit(): bool; | |
| 60 | + public function isHit(); | |
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * Sets the value represented by this cache item. |
| 64 | 64 | * |
| @@ -71,14 +71,14 @@ | ||
| 71 | 71 | * |
| 72 | 72 | * @return static |
| 73 | 73 | * The invoked object. |
| 74 | 74 | */ |
| 75 | - public function set(mixed $value): static; | |
| 75 | + public function set($value); | |
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | 78 | * Sets the expiration time for this cache item. |
| 79 | 79 | * |
| 80 | - * @param ?\DateTimeInterface $expiration | |
| 80 | + * @param \DateTimeInterface|null $expiration | |
| 81 | 81 | * The point in time after which the item MUST be considered expired. |
| 82 | 82 | * If null is passed explicitly, a default value MAY be used. If none is set, |
| 83 | 83 | * the value should be stored permanently or for as long as the |
| 84 | 84 | * implementation allows. |
| @@ -85,9 +85,9 @@ | ||
| 85 | 85 | * |
| 86 | 86 | * @return static |
| 87 | 87 | * The called object. |
| 88 | 88 | */ |
| 89 | - public function expiresAt(?\DateTimeInterface $expiration): static; | |
| 89 | + public function expiresAt($expiration); | |
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | 92 | * Sets the expiration time for this cache item. |
| 93 | 93 | * |
| @@ -100,6 +100,6 @@ | ||
| 100 | 100 | * |
| 101 | 101 | * @return static |
| 102 | 102 | * The called object. |
| 103 | 103 | */ |
| 104 | - public function expiresAfter(int|\DateInterval|null $time): static; | |
| 104 | + public function expiresAfter($time); | |
| 105 | 105 | } |