File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -272,4 +272,4 @@ The envelope has the following structure:
272
272
273
273
]
274
274
}
275
- ```
275
+ ```
Original file line number Diff line number Diff line change 26
26
}
27
27
},
28
28
"minimum-stability" : " stable"
29
- }
29
+ }
Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ protected function parseFields($fieldsParam)
328
328
protected function parseWith ($ withParam )
329
329
{
330
330
$ fields = $ this ->query ->columns ;
331
- $ fieldsCount = count ($ fields );
331
+ $ fieldsCount = count ($ fields ?: [] );
332
332
$ baseModel = $ this ->builder ->getModel ();
333
333
334
334
$ withHistory = [];
@@ -449,7 +449,7 @@ protected function parseWith($withParam)
449
449
$ this ->builder ->with ($ withsArr );
450
450
451
451
//Merge the base fields
452
- if (count ($ fields ) > 0 ) {
452
+ if (count ($ fields ?: [] ) > 0 ) {
453
453
if (!is_array ($ this ->query ->columns )) {
454
454
$ this ->query ->columns = [];
455
455
}
You can’t perform that action at this time.
0 commit comments