From 4a66790fe56f5360a1300d9ef97e8c849af2ae78 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 12 Jul 2021 13:15:00 +0200 Subject: [PATCH] add cast on FileInformation::getAttributes --- core/Entity/FileInformation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Entity/FileInformation.php b/core/Entity/FileInformation.php index a93f202..498ffd0 100644 --- a/core/Entity/FileInformation.php +++ b/core/Entity/FileInformation.php @@ -36,7 +36,7 @@ class FileInformation implements EntityInterface public function getAttributes() { - return json_decode($this->attributes, true); + return (array) json_decode($this->attributes, true); } public function setAttributes($attributes): self