Skip to content

Commit 553a164

Browse files
authored
Adapt to Stringable value support in Like (#368)
1 parent d1f80fa commit 553a164

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Builder/LikeBuilder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Yiisoft\Db\Oracle\Builder;
66

7+
use Stringable;
78
use Yiisoft\Db\Expression\ExpressionInterface;
89
use Yiisoft\Db\QueryBuilder\Condition\Like;
910
use Yiisoft\Db\QueryBuilder\Condition\NotLike;
@@ -52,7 +53,7 @@ protected function prepareColumn(Like|NotLike $condition, array &$params): strin
5253
}
5354

5455
protected function preparePlaceholderName(
55-
string|int|ExpressionInterface $value,
56+
string|Stringable|int|ExpressionInterface $value,
5657
Like|NotLike $condition,
5758
array &$params,
5859
): string {

0 commit comments

Comments
 (0)