Skip to content

Commit

Permalink
Fix tests yiisoft/active-record. (#459)
Browse files Browse the repository at this point in the history
* Fix tests yiisoft/active-record.
  • Loading branch information
terabytesoftw committed Jan 5, 2023
1 parent a5cdfd6 commit b11800a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Query/Query.php
Expand Up @@ -646,7 +646,7 @@ public function populate(array $rows): array
return $result;
}

public function prepare(QueryBuilderInterface $builder): static
public function prepare(QueryBuilderInterface $builder): QueryInterface
{
return $this;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Query/QueryInterface.php
Expand Up @@ -252,9 +252,9 @@ public function populate(array $rows): array;
*
* @param QueryBuilderInterface $builder
*
* @return static A prepared query instance which will be used by {@see QueryBuilder} to build the SQL.
* @return QueryInterface A prepared query instance which will be used by {@see QueryBuilder} to build the SQL.
*/
public function prepare(QueryBuilderInterface $builder): static;
public function prepare(QueryBuilderInterface $builder): self;

/**
* Returns the query result as a scalar value.
Expand Down

0 comments on commit b11800a

Please sign in to comment.