Upgrade to 3.6.2
This commit is contained in:
@@ -26,8 +26,6 @@ class NestCollection extends BaseCollection
|
||||
*/
|
||||
public function toArray(Closure $map = null): array
|
||||
{
|
||||
return parent::toArray($map ?? function ($object) {
|
||||
return $object->toArray();
|
||||
});
|
||||
return parent::toArray($map ?? fn ($object) => $object->toArray());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user