Skip to content

Commit

Permalink
Method getCategories should return empty array by default, instead of…
Browse files Browse the repository at this point in the history
… null value
  • Loading branch information
stupidkitty committed Aug 24, 2023
1 parent 173d5e4 commit b112954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/Video.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ public function getStretchedRatio(): ?float
*/
public function getCategories(): array
{
return $this->get('categories');
return $this->get('categories', []);
}

/**
Expand Down

0 comments on commit b112954

Please sign in to comment.