Completed
Pull Request — 2.1 (#14622)
by Alexander
27:00 queued 22:59
created
framework/web/CacheSession.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
     /**
114 114
      * Generates a unique key used for storing session data in cache.
115 115
      * @param string $id session variable name
116
-     * @return mixed a safe cache key associated with the session variable name
116
+     * @return string[] a safe cache key associated with the session variable name
117 117
      */
118 118
     protected function calculateKey($id)
119 119
     {
Please login to merge, or discard this patch.
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.
framework/caching/TagDependency.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     /**
70 70
      * Invalidates all of the cached data items that are associated with any of the specified [[tags]].
71 71
      * @param \Psr\SimpleCache\CacheInterface $cache the cache component that caches the data items
72
-     * @param string|array $tags
72
+     * @param string $tags
73 73
      */
74 74
     public static function invalidate($cache, $tags)
75 75
     {
Please login to merge, or discard this patch.
framework/console/controllers/CacheController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
     /**
237 237
      * Prompts user with confirmation if caches should be cleared.
238 238
      * @param array $cachesNames
239
-     * @return bool
239
+     * @return boolean|null
240 240
      */
241 241
     private function confirmClear($cachesNames)
242 242
     {
Please login to merge, or discard this patch.