Skip to content

Commit

Permalink
Merge pull request #21 from philharmonie/master
Browse files Browse the repository at this point in the history
Update HasAttributes.php
  • Loading branch information
colinhall17 authored Aug 24, 2023
2 parents 0b8d784 + 9fcf74f commit 909bb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/HasAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function getIncrementing()

public function getDates()
{
return $this->dates;
return $this->dates ?? [];
}

/**
Expand Down

0 comments on commit 909bb58

Please sign in to comment.