From 9fcf74fdbdf1c528d1223d46b89e0b263f52b02c Mon Sep 17 00:00:00 2001 From: philharmonie Date: Sat, 1 Apr 2023 15:29:58 +0200 Subject: [PATCH] Update HasAttributes.php --- src/Traits/HasAttributes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/HasAttributes.php b/src/Traits/HasAttributes.php index 3642f44..1a3c3cf 100644 --- a/src/Traits/HasAttributes.php +++ b/src/Traits/HasAttributes.php @@ -49,7 +49,7 @@ public function getIncrementing() public function getDates() { - return $this->dates; + return $this->dates ?? []; } /**