Skip to content

Commit f2c0d27

Browse files
Fix ImplicitToStringCast error (#34324)
Argument 1 of `Illuminate\Database\Eloquent\Builder::whereBetween` expects `string`, `Illuminate\Database\Query\Expression` provided with a `__toString` method (see https://psalm.dev/060) example: ``` $query->whereBetween(DB::raw('CAST(`tasks`.`created_at` AS DATE)'), [ ```
1 parent efcb7e9 commit f2c0d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ public function whereNotNull($columns, $boolean = 'and')
10881088
/**
10891089
* Add a where between statement to the query.
10901090
*
1091-
* @param string $column
1091+
* @param string|\Illuminate\Database\Query\Expression $column
10921092
* @param array $values
10931093
* @param string $boolean
10941094
* @param bool $not

0 commit comments

Comments
 (0)