Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore Query::one interface #798

Merged
merged 13 commits into from
Aug 22, 2024
6 changes: 3 additions & 3 deletions src/Query/QueryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ public function getWithQueries(): array;
* @throws InvalidConfigException
* @throws Throwable
*
* @return array|null The first row (in terms of an array) of the query result. It returns `null` if the query
* results in nothing.
* @return array|object|null The first row (as array or object) of the query result.
* It returns `null` if the query results in nothing.
*/
public function one(): array|null;
public function one(): array|object|null;
vjik marked this conversation as resolved.
Show resolved Hide resolved

/**
* Sets the parameters to bind to the query.
Expand Down
Loading