Skip to content

Commit b11800a

Browse files
Fix tests yiisoft/active-record. (#459)
* Fix tests yiisoft/active-record.
1 parent a5cdfd6 commit b11800a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Query/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ public function populate(array $rows): array
646646
return $result;
647647
}
648648

649-
public function prepare(QueryBuilderInterface $builder): static
649+
public function prepare(QueryBuilderInterface $builder): QueryInterface
650650
{
651651
return $this;
652652
}

src/Query/QueryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ public function populate(array $rows): array;
252252
*
253253
* @param QueryBuilderInterface $builder
254254
*
255-
* @return static A prepared query instance which will be used by {@see QueryBuilder} to build the SQL.
255+
* @return QueryInterface A prepared query instance which will be used by {@see QueryBuilder} to build the SQL.
256256
*/
257-
public function prepare(QueryBuilderInterface $builder): static;
257+
public function prepare(QueryBuilderInterface $builder): self;
258258

259259
/**
260260
* Returns the query result as a scalar value.

0 commit comments

Comments
 (0)