From d50116d884db999d4675edde400c6808ca115367 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 26 Oct 2020 21:55:25 +0100 Subject: [PATCH] fix infinite parsing bug --- Models/Unit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Models/Unit.php b/Models/Unit.php index b492403..1bdaccb 100755 --- a/Models/Unit.php +++ b/Models/Unit.php @@ -273,7 +273,7 @@ class Unit implements \JsonSerializable, ArrayableInterface 'status' => $this->status, 'description' => $this->description, 'descriptionRaw' => $this->descriptionRaw, - 'parent' => $this->parent ?? new NullUnit(), + 'parent' => $this->parent, 'image' => $this->image, ]; }