Skip to content

Commit

Permalink
Merge pull request #209 from AlikDex/master
Browse files Browse the repository at this point in the history
Fix returning array when provider does not support category retrieval
  • Loading branch information
norkunas authored Aug 25, 2023
2 parents 173d5e4 + b112954 commit bc0a83c
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 bc0a83c

Please sign in to comment.