Completed
Pull Request — 2.1 (#14622)
by
unknown
16:44
created
framework/caching/Cache.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      * expiration time will be replaced with the new ones, respectively.
230 230
      *
231 231
      * @param array $items the items to be cached, as key-value pairs.
232
-     * @param null|int|\DateInterval $ttl the TTL value of this item. If not set, default value is used.
232
+     * @param integer $ttl the TTL value of this item. If not set, default value is used.
233 233
      * @param Dependency $dependency dependency of the cached items. If the dependency changes,
234 234
      * the corresponding values in the cache will be invalidated when it is fetched via [[get()]].
235 235
      * This parameter is ignored if [[serializer]] is false.
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
      * If the cache already contains such a key, the existing value and expiration time will be preserved.
276 276
      *
277 277
      * @param array $items the items to be cached, as key-value pairs.
278
-     * @param null|int|\DateInterval $ttl the TTL value of this item. If not set, default value is used.
278
+     * @param integer $ttl the TTL value of this item. If not set, default value is used.
279 279
      * @param Dependency $dependency dependency of the cached items. If the dependency changes,
280 280
      * the corresponding values in the cache will be invalidated when it is fetched via [[get()]].
281 281
      * This parameter is ignored if [[serializer]] is false.
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 
344 344
     /**
345 345
      * Deletes a value with the specified key from cache
346
-     * @param mixed $key a key identifying the value to be deleted from cache. This can be a simple string or
346
+     * @param string $key a key identifying the value to be deleted from cache. This can be a simple string or
347 347
      * a complex data structure consisting of factors representing the key.
348 348
      * @return bool if no error happens during deletion
349 349
      */
Please login to merge, or discard this patch.