From 669bb09b8136a942bcc45942e1b76e8d0908d649 Mon Sep 17 00:00:00 2001 From: dereuromark Date: Mon, 20 Mar 2017 00:04:02 +0100 Subject: [PATCH] Fix return value. --- src/Model/Behavior/Version/VersionTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();