@@ -202,7 +202,7 @@ discard block |
||
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 |
||
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. |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | |
308 | 308 | /** |
309 | 309 | * Deletes a value with the specified key from cache. |
310 | - * @param mixed $key a key identifying the value to be deleted from cache. This can be a simple string or |
|
310 | + * @param string $key a key identifying the value to be deleted from cache. This can be a simple string or |
|
311 | 311 | * a complex data structure consisting of factors representing the key. |
312 | 312 | * @return bool if no error happens during deletion |
313 | 313 | */ |
@@ -100,7 +100,7 @@ |
||
100 | 100 | |
101 | 101 | /** |
102 | 102 | * @inheritdoc |
103 | - * @return static|null ActiveRecord instance matching the condition, or `null` if nothing matches. |
|
103 | + * @return BaseActiveRecord ActiveRecord instance matching the condition, or `null` if nothing matches. |
|
104 | 104 | */ |
105 | 105 | public static function findOne($condition) |
106 | 106 | { |
@@ -212,7 +212,7 @@ |
||
212 | 212 | /** |
213 | 213 | * Parses content part headers. |
214 | 214 | * @param string $headerContent headers source content |
215 | - * @return array parsed headers. |
|
215 | + * @return callable parsed headers. |
|
216 | 216 | */ |
217 | 217 | private function parseHeaders($headerContent) |
218 | 218 | { |
@@ -288,7 +288,7 @@ |
||
288 | 288 | /** |
289 | 289 | * Validates a given value. |
290 | 290 | * You may use this method to validate a value out of the context of a data model. |
291 | - * @param mixed $value the data value to be validated. |
|
291 | + * @param string|null $value the data value to be validated. |
|
292 | 292 | * @param string $error the error message to be returned, if the validation fails. |
293 | 293 | * @return bool whether the data is valid. |
294 | 294 | */ |