Skip to content

Commit 0b6df53

Browse files
committed
Fix error $models is null
1 parent 3953b64 commit 0b6df53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Extract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function extract(string $format, ?Collection $models = null): array
6565
{
6666
$this->builder->createBuilder($format);
6767

68-
$models = $this->validateCustomModel($models) ?? $this->query();
68+
$models = $models ? $this->validateCustomModel($models) : $this->query();
6969

7070
// Flatten all models and their relationships
7171
$this->flattenRelation($models);

0 commit comments

Comments
 (0)