Skip to content

Commit 909062e

Browse files
Always return a valid array when retrieving all boolean dates
1 parent 8296c25 commit 909062e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
99
### Fixed
1010

1111
- Removed `$booleanDates` trait variable to resolve conflict with the model it's used in
12+
- Always return a valid array when retrieving all boolean dates
1213

1314
## 0.2.1 (2018-07-26)
1415

src/BooleanDates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function setAttribute($key, $value)
6666
*/
6767
public function getBooleanDates() : array
6868
{
69-
return $this->booleanDates;
69+
return $this->booleanDates ?? [];
7070
}
7171

7272
/**

0 commit comments

Comments
 (0)