Skip to content

Commit 53e38e9

Browse files
samdarkvjik
andauthored
Add ExpressionBuilderInterface::build() (#338)
Co-authored-by: Sergei Predvoditelev <[email protected]>
1 parent 43fbd20 commit 53e38e9

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/Builder/InConditionBuilder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class InConditionBuilder extends \Yiisoft\Db\QueryBuilder\Condition\Builde
2424
/**
2525
* The Method builds the raw SQL from the $expression that won't be additionally escaped or quoted.
2626
*
27-
* @param ExpressionInterface $expression The expression to build.
27+
* @param InConditionInterface $expression The expression to build.
2828
* @param array $params The binding parameters.
2929
*
3030
* @throws Exception
@@ -33,8 +33,6 @@ final class InConditionBuilder extends \Yiisoft\Db\QueryBuilder\Condition\Builde
3333
* @throws NotSupportedException
3434
*
3535
* @return string The raw SQL that won't be additionally escaped or quoted.
36-
*
37-
* @psalm-param InConditionInterface $expression
3836
*/
3937
public function build(ExpressionInterface $expression, array &$params = []): string
4038
{

src/Builder/LikeConditionBuilder.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Yiisoft\Db\Oracle\Builder;
66

7-
use Exception;
87
use Yiisoft\Db\Expression\ExpressionInterface;
98
use Yiisoft\Db\QueryBuilder\Condition\Interface\LikeConditionInterface;
109
use Yiisoft\Db\QueryBuilder\QueryBuilderInterface;
@@ -34,10 +33,7 @@ public function __construct(private QueryBuilderInterface $queryBuilder)
3433
parent::__construct($queryBuilder, $this->getEscapeSql());
3534
}
3635

37-
/**
38-
* @throws Exception
39-
*/
40-
public function build(LikeConditionInterface $expression, array &$params = []): string
36+
public function build(ExpressionInterface $expression, array &$params = []): string
4137
{
4238
if (!isset($this->escapingReplacements['\\'])) {
4339
/*

0 commit comments

Comments
 (0)