* 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:
Brandon Kelly
2022-03-30 09:40:10 -07:00
committed by GitHub
parent 4cfdfc011f
commit 4628b91e73
117 changed files with 318 additions and 328 deletions

View File

@ -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.