@@ -129,7 +129,7 @@ |
||
| 129 | 129 | * This method is called by [[evaluateAttributes()]]. Its return value will be assigned |
| 130 | 130 | * to the attributes corresponding to the triggering event. |
| 131 | 131 | * @param Event $event the event that triggers the current attribute updating. |
| 132 | - * @return mixed the attribute value |
|
| 132 | + * @return string the attribute value |
|
| 133 | 133 | */ |
| 134 | 134 | protected function getValue($event) |
| 135 | 135 | { |
@@ -323,7 +323,7 @@ |
||
| 323 | 323 | /** |
| 324 | 324 | * Returns the list of all attribute names of the model. |
| 325 | 325 | * The default implementation will return all column names of the table associated with this AR class. |
| 326 | - * @return array list of attribute names. |
|
| 326 | + * @return integer[] list of attribute names. |
|
| 327 | 327 | */ |
| 328 | 328 | public function attributes() |
| 329 | 329 | { |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | * Finds the related records and populates them into the primary models. |
| 188 | 188 | * @param string $name the relation name |
| 189 | 189 | * @param array $primaryModels primary models |
| 190 | - * @return array the related models |
|
| 190 | + * @return ActiveRecordInterface[] the related models |
|
| 191 | 191 | * @throws InvalidConfigException if [[link]] is invalid |
| 192 | 192 | */ |
| 193 | 193 | public function populateRelation($name, &$primaryModels) |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | } |
| 344 | 344 | |
| 345 | 345 | /** |
| 346 | - * @param array $models |
|
| 346 | + * @param ActiveRecordInterface[] $models |
|
| 347 | 347 | * @param array $link |
| 348 | 348 | * @param array $viaModels |
| 349 | 349 | * @param array $viaLink |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | * Check the given requirements, collecting results into internal field. |
| 61 | 61 | * This method can be invoked several times checking different requirement sets. |
| 62 | 62 | * Use [[getResult()]] or [[render()]] to get the results. |
| 63 | - * @param array|string $requirements requirements to be checked. |
|
| 63 | + * @param string $requirements requirements to be checked. |
|
| 64 | 64 | * If an array, it is treated as the set of requirements; |
| 65 | 65 | * If a string, it is treated as the path of the file, which contains the requirements; |
| 66 | 66 | * @return $this self instance. |
@@ -431,7 +431,7 @@ |
||
| 431 | 431 | * If the parameter does not exist, the second parameter passed to this method will be returned. |
| 432 | 432 | * @param string $name the parameter name |
| 433 | 433 | * @param mixed $defaultValue the default parameter value if the parameter does not exist. |
| 434 | - * @return mixed the parameter value |
|
| 434 | + * @return string the parameter value |
|
| 435 | 435 | * @see getBodyParams() |
| 436 | 436 | * @see setBodyParams() |
| 437 | 437 | */ |
@@ -225,7 +225,7 @@ |
||
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | /** |
| 228 | - * @return array the begin and end pages that need to be displayed. |
|
| 228 | + * @return integer[] the begin and end pages that need to be displayed. |
|
| 229 | 229 | */ |
| 230 | 230 | protected function getPageRange() |
| 231 | 231 | { |
@@ -750,7 +750,7 @@ |
||
| 750 | 750 | * }); |
| 751 | 751 | * ``` |
| 752 | 752 | * |
| 753 | - * @param string|array $url the URL to be redirected to. This can be in one of the following formats: |
|
| 753 | + * @param string $url the URL to be redirected to. This can be in one of the following formats: |
|
| 754 | 754 | * |
| 755 | 755 | * - a string representing a URL (e.g. "http://example.com") |
| 756 | 756 | * - a string representing a URL alias (e.g. "@example.com") |
@@ -196,7 +196,7 @@ |
||
| 196 | 196 | * @param string $message the error message. |
| 197 | 197 | * @param string $file the filename that the error was raised in. |
| 198 | 198 | * @param int $line the line number the error was raised at. |
| 199 | - * @return bool whether the normal error handler continues. |
|
| 199 | + * @return null|false whether the normal error handler continues. |
|
| 200 | 200 | * |
| 201 | 201 | * @throws ErrorException |
| 202 | 202 | */ |
@@ -231,7 +231,7 @@ |
||
| 231 | 231 | /** |
| 232 | 232 | * Prompts user with confirmation if caches should be flushed. |
| 233 | 233 | * @param array $cachesNames |
| 234 | - * @return bool |
|
| 234 | + * @return boolean|null |
|
| 235 | 235 | */ |
| 236 | 236 | private function confirmFlush($cachesNames) |
| 237 | 237 | { |