diff --git a/src/Model/Behavior/Version/VersionTrait.php b/src/Model/Behavior/Version/VersionTrait.php index a594de4..e294ed0 100644 --- a/src/Model/Behavior/Version/VersionTrait.php +++ b/src/Model/Behavior/Version/VersionTrait.php @@ -48,7 +48,7 @@ public function versions($reset = false) $entities = $query->where($conditions)->all(); if (empty($entities)) { - return new Collection(); + return new Collection([]); } $entity = $entities->first();