mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fix types (#19332)
* Migration::upsert() returns void * Unneeded `@property` tags * Add missing `null` param/return types * Null types for db\Query + db\ActiveQuery * Fixed testSelect
This commit is contained in:
@ -24,7 +24,7 @@ interface QueryInterface
|
||||
{
|
||||
/**
|
||||
* Executes the query and returns all results as an array.
|
||||
* @param Connection $db the database connection used to execute the query.
|
||||
* @param Connection|null $db the database connection used to execute the query.
|
||||
* If this parameter is not given, the `db` application component will be used.
|
||||
* @return array the query results. If the query results in nothing, an empty array will be returned.
|
||||
*/
|
||||
@ -32,7 +32,7 @@ interface QueryInterface
|
||||
|
||||
/**
|
||||
* Executes the query and returns a single row of result.
|
||||
* @param Connection $db the database connection used to execute the query.
|
||||
* @param Connection|null $db the database connection used to execute the query.
|
||||
* If this parameter is not given, the `db` application component will be used.
|
||||
* @return array|bool the first row (in terms of an array) of the query result. False is returned if the query
|
||||
* results in nothing.
|
||||
|
Reference in New Issue
Block a user