Skip to content

Commit

Permalink
Use the method which will always be an object. Closes #2451
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Oct 20, 2020
1 parent bce678d commit b5888ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entries/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public function fileData()
{
$array = $this->data()->merge([
'id' => $this->id(),
'origin' => optional($this->origin)->id(),
'origin' => optional($this->origin())->id(),
'published' => $this->published === false ? false : null,
]);

Expand Down

0 comments on commit b5888ba

Please sign in to comment.