Completed
Pull Request — 2.1 (#14622)
by
unknown
11:53
created
framework/caching/Cache.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      * expiration time will be replaced with the new ones, respectively.
203 203
      *
204 204
      * @param array $items the items to be cached, as key-value pairs.
205
-     * @param null|int|\DateInterval $ttl the TTL value of this item. If not set, default value is used.
205
+     * @param integer $ttl the TTL value of this item. If not set, default value is used.
206 206
      * @param Dependency $dependency dependency of the cached items. If the dependency changes,
207 207
      * the corresponding values in the cache will be invalidated when it is fetched via [[get()]].
208 208
      * This parameter is ignored if [[serializer]] is false.
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      * If the cache already contains such a key, the existing value and expiration time will be preserved.
246 246
      *
247 247
      * @param array $values the items to be cached, as key-value pairs.
248
-     * @param null|int|\DateInterval $ttl the TTL value of this item. If not set, default value is used.
248
+     * @param integer $ttl the TTL value of this item. If not set, default value is used.
249 249
      * @param Dependency $dependency dependency of the cached items. If the dependency changes,
250 250
      * the corresponding values in the cache will be invalidated when it is fetched via [[get()]].
251 251
      * This parameter is ignored if [[serializer]] is false.
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 
309 309
     /**
310 310
      * Deletes a value with the specified key from cache
311
-     * @param mixed $key a key identifying the value to be deleted from cache. This can be a simple string or
311
+     * @param string $key a key identifying the value to be deleted from cache. This can be a simple string or
312 312
      * a complex data structure consisting of factors representing the key.
313 313
      * @return bool if no error happens during deletion
314 314
      */
Please login to merge, or discard this patch.