Skip to content

Commit dfa6b75

Browse files
committed
fix: castFieldToJson return type with sqlite
1 parent 7d90697 commit dfa6b75

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Testing/InteractsWithJsonFields.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Orion\Testing;
66

77
use Illuminate\Contracts\Support\Jsonable;
8-
use Illuminate\Database\Query\Expression;
98
use Illuminate\Support\Facades\DB;
109

1110
trait InteractsWithJsonFields
@@ -21,7 +20,7 @@ protected function castFieldsToJson(array $fields): array
2120
})->toArray();
2221
}
2322

24-
protected function castFieldToJson($value): Expression
23+
protected function castFieldToJson($value)
2524
{
2625
if ($value instanceof Jsonable) {
2726
$value = $value->toJson();

0 commit comments

Comments
 (0)