Skip to content

Commit 909bb58

Browse files
authored
Merge pull request #21 from philharmonie/master
Update HasAttributes.php
2 parents 0b8d784 + 9fcf74f commit 909bb58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/HasAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function getIncrementing()
4949

5050
public function getDates()
5151
{
52-
return $this->dates;
52+
return $this->dates ?? [];
5353
}
5454

5555
/**

0 commit comments

Comments
 (0)