Skip to content

Commit 446fc8e

Browse files
committed
Adapt to Stringable value support in Yii Data
1 parent 3711332 commit 446fc8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/FilterHandler/BetweenHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Yiisoft\Data\Db\FilterHandler;
66

77
use DateTimeInterface;
8+
use Stringable;
89
use Yiisoft\Data\Reader\Filter\Between;
910
use Yiisoft\Data\Reader\FilterInterface;
1011
use Yiisoft\Db\Expression\Value\DateTimeValue;
@@ -29,7 +30,7 @@ public function getCondition(FilterInterface $filter, Context $context): Conditi
2930
);
3031
}
3132

32-
private function prepareValue(bool|DateTimeInterface|float|int|string $value): mixed
33+
private function prepareValue(bool|DateTimeInterface|float|int|string|Stringable $value): mixed
3334
{
3435
return $value instanceof DateTimeInterface
3536
? new DateTimeValue($value)

0 commit comments

Comments
 (0)