@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * |
94 | 94 | * @inheritDoc |
95 | 95 | * |
96 | - * @param iterable $keys List of key strings that identify the cache entries that should be removed |
|
96 | + * @param string[] $keys List of key strings that identify the cache entries that should be removed |
|
97 | 97 | * @return bool True if the items were successfully removed. False if there was an error. |
98 | 98 | * @throws \Psr\SimpleCache\InvalidArgumentException |
99 | 99 | */ |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | * |
113 | 113 | * @inheritDoc |
114 | 114 | * |
115 | - * @param iterable $tags List of tag strings that are associated to one or |
|
115 | + * @param string[] $tags List of tag strings that are associated to one or |
|
116 | 116 | * more cache entries that should be removed |
117 | 117 | * @return bool True if the items were successfully removed. False if there was an error. |
118 | 118 | * @throws \Psr\SimpleCache\InvalidArgumentException |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * @inheritDoc |
134 | 134 | * |
135 | 135 | * @param string $key Path to the requested value like product/id/123 |
136 | - * @param mixed $default Value returned if requested key isn't found |
|
136 | + * @param string $default Value returned if requested key isn't found |
|
137 | 137 | * @return mixed Value associated to the requested key. If no value for the |
138 | 138 | * key is found in the cache, the given default value is returned |
139 | 139 | * @throws \Psr\SimpleCache\InvalidArgumentException |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * |
154 | 154 | * @inheritDoc |
155 | 155 | * |
156 | - * @param iterable $keys List of key strings for the requested cache entries |
|
156 | + * @param string[] $keys List of key strings for the requested cache entries |
|
157 | 157 | * @param mixed $default Default value to return for keys that do not exist |
158 | 158 | * @return iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value. |
159 | 159 | * @throws \Psr\SimpleCache\InvalidArgumentException |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | * @inheritDoc |
231 | 231 | * |
232 | 232 | * @param iterable $pairs Associative list of key/value pairs. Both must be a string |
233 | - * @param \DateInterval|int|string|null $expires Date interval object, |
|
233 | + * @param string|null $expires Date interval object, |
|
234 | 234 | * date/time string in "YYYY-MM-DD HH:mm:ss" format or as integer TTL value |
235 | 235 | * when the cache entry will expiry |
236 | 236 | * @param iterable $tags List of tags that should be associated to the cache entries |
@@ -103,7 +103,7 @@ |
||
103 | 103 | * @param array $config Associative list of key/value pairs |
104 | 104 | * @param string $key Key of the value to retrieve |
105 | 105 | * @param mixed $default Default value if value for key isn't found |
106 | - * @return mixed Configuration value for the given key or default value |
|
106 | + * @return string Configuration value for the given key or default value |
|
107 | 107 | */ |
108 | 108 | protected function getValue( array $config, string $key, $default = null ) |
109 | 109 | { |