@@ -370,7 +370,7 @@ |
||
| 370 | 370 | * Finds out a line of the first non-char PHP token found |
| 371 | 371 | * |
| 372 | 372 | * @param array $tokens |
| 373 | - * @return int|string |
|
| 373 | + * @return string |
|
| 374 | 374 | * @since 2.0.1 |
| 375 | 375 | */ |
| 376 | 376 | protected function getLine($tokens) |
@@ -320,7 +320,7 @@ |
||
| 320 | 320 | /** |
| 321 | 321 | * Returns the list of all attribute names of the model. |
| 322 | 322 | * The default implementation will return all column names of the table associated with this AR class. |
| 323 | - * @return array list of attribute names. |
|
| 323 | + * @return integer[] list of attribute names. |
|
| 324 | 324 | */ |
| 325 | 325 | public function attributes() |
| 326 | 326 | { |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | * Finds the related records and populates them into the primary models. |
| 186 | 186 | * @param string $name the relation name |
| 187 | 187 | * @param array $primaryModels primary models |
| 188 | - * @return array the related models |
|
| 188 | + * @return ActiveRecordInterface[] the related models |
|
| 189 | 189 | * @throws InvalidConfigException if [[link]] is invalid |
| 190 | 190 | */ |
| 191 | 191 | public function populateRelation($name, &$primaryModels) |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | } |
| 342 | 342 | |
| 343 | 343 | /** |
| 344 | - * @param array $models |
|
| 344 | + * @param ActiveRecordInterface[] $models |
|
| 345 | 345 | * @param array $link |
| 346 | 346 | * @param array $viaModels |
| 347 | 347 | * @param array $viaLink |
@@ -54,6 +54,7 @@ |
||
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * @inheritdoc |
| 57 | + * @param string $name |
|
| 57 | 58 | */ |
| 58 | 59 | public function quoteSimpleTableName($name) |
| 59 | 60 | { |
@@ -54,6 +54,7 @@ |
||
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * @inheritdoc |
| 57 | + * @return string |
|
| 57 | 58 | */ |
| 58 | 59 | public function formatMessage($message) |
| 59 | 60 | { |
@@ -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. |
@@ -426,7 +426,7 @@ |
||
| 426 | 426 | * If the parameter does not exist, the second parameter passed to this method will be returned. |
| 427 | 427 | * @param string $name the parameter name |
| 428 | 428 | * @param mixed $defaultValue the default parameter value if the parameter does not exist. |
| 429 | - * @return mixed the parameter value |
|
| 429 | + * @return string the parameter value |
|
| 430 | 430 | * @see getBodyParams() |
| 431 | 431 | * @see setBodyParams() |
| 432 | 432 | */ |
@@ -224,7 +224,7 @@ |
||
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | /** |
| 227 | - * @return array the begin and end pages that need to be displayed. |
|
| 227 | + * @return integer[] the begin and end pages that need to be displayed. |
|
| 228 | 228 | */ |
| 229 | 229 | protected function getPageRange() |
| 230 | 230 | { |
@@ -355,6 +355,7 @@ |
||
| 355 | 355 | |
| 356 | 356 | /** |
| 357 | 357 | * @inheritdoc |
| 358 | + * @param Query $query |
|
| 358 | 359 | */ |
| 359 | 360 | public function build($query, $params = []) |
| 360 | 361 | { |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | namespace yii\db\sqlite; |
| 9 | 9 | |
| 10 | 10 | use yii\db\Connection; |
| 11 | -use yii\db\Exception; |
|
| 12 | 11 | use yii\base\InvalidParamException; |
| 13 | 12 | use yii\base\NotSupportedException; |
| 14 | 13 | use yii\db\Expression; |