Skip to content

Commit 404fc93

Browse files
committed
Adapt for changes in db
1 parent d2b9673 commit 404fc93

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Builder/JsonOverlapsBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Yiisoft\Db\Exception\NotSupportedException;
1111
use Yiisoft\Db\Expression\ExpressionBuilderInterface;
1212
use Yiisoft\Db\Expression\ExpressionInterface;
13-
use Yiisoft\Db\Expression\Value\JsonExpression;
13+
use Yiisoft\Db\Expression\Value\JsonValue;
1414
use Yiisoft\Db\QueryBuilder\Condition\JsonOverlaps;
1515
use Yiisoft\Db\QueryBuilder\QueryBuilderInterface;
1616

@@ -44,7 +44,7 @@ public function build(ExpressionInterface $expression, array &$params = []): str
4444

4545
$values = $expression->values;
4646
if (!$values instanceof ExpressionInterface) {
47-
$values = new JsonExpression($values);
47+
$values = new JsonValue($values);
4848
}
4949
$values = $this->queryBuilder->buildExpression($values, $params);
5050

tests/QueryBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use PHPUnit\Framework\Attributes\DataProviderExternal;
99
use Yiisoft\Db\Constant\DataType;
1010
use Yiisoft\Db\Exception\NotSupportedException;
11-
use Yiisoft\Db\Expression\Value\ArrayExpression;
11+
use Yiisoft\Db\Expression\Value\ArrayValue;
1212
use Yiisoft\Db\Expression\Statement\CaseX;
1313
use Yiisoft\Db\Expression\Expression;
1414
use Yiisoft\Db\Expression\ExpressionInterface;
@@ -772,7 +772,7 @@ public function testArrayMergeWithOrdering(): void
772772
"'[2,1,3]'",
773773
[6, 5, 7],
774774
$stringParam,
775-
self::getDb()->select(new ArrayExpression([10, 9])),
775+
self::getDb()->select(new ArrayValue([10, 9])),
776776
))->ordered();
777777
$params = [];
778778

0 commit comments

Comments
 (0)