Skip to content

Commit 709ae7d

Browse files
samdarkvjik
andauthored
Add ExpressionBuilderInterface::build() (#369)
Co-authored-by: Sergei Predvoditelev <[email protected]>
1 parent 502d9f0 commit 709ae7d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Builder/JsonOverlapsConditionBuilder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
/**
1717
* Builds expressions for {@see JsonOverlapsCondition} for SQLite Server.
18+
*
19+
* @extends AbstractOverlapsConditionBuilder<JsonOverlapsCondition>
1820
*/
1921
final class JsonOverlapsConditionBuilder extends AbstractOverlapsConditionBuilder
2022
{

src/Builder/LikeConditionBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Yiisoft\Db\Sqlite\Builder;
66

77
use Yiisoft\Db\Exception\NotSupportedException;
8-
use Yiisoft\Db\QueryBuilder\Condition\Interface\LikeConditionInterface;
8+
use Yiisoft\Db\Expression\ExpressionInterface;
99
use Yiisoft\Db\QueryBuilder\QueryBuilderInterface;
1010

1111
/**
@@ -20,7 +20,7 @@ public function __construct(QueryBuilderInterface $queryBuilder)
2020
parent::__construct($queryBuilder, $this->getEscapeSql());
2121
}
2222

23-
public function build(LikeConditionInterface $expression, array &$params = []): string
23+
public function build(ExpressionInterface $expression, array &$params = []): string
2424
{
2525
if ($expression->getCaseSensitive() === true) {
2626
throw new NotSupportedException('SQLite doesn\'t support case-sensitive "LIKE" conditions.');

0 commit comments

Comments
 (0)