From b1129541f9bd8218236c7cb10e5ad50f86371161 Mon Sep 17 00:00:00 2001 From: stupidkitty Date: Thu, 24 Aug 2023 21:17:12 +0300 Subject: [PATCH] Method getCategories should return empty array by default, instead of null value --- src/Entity/Video.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/Video.php b/src/Entity/Video.php index f14b81e..c7d8126 100644 --- a/src/Entity/Video.php +++ b/src/Entity/Video.php @@ -456,7 +456,7 @@ public function getStretchedRatio(): ?float */ public function getCategories(): array { - return $this->get('categories'); + return $this->get('categories', []); } /**