From a8844d408b2b48ecfac40d33d1582e24bf5b48a4 Mon Sep 17 00:00:00 2001 From: Eduardo Morales Date: Mon, 11 Mar 2024 08:11:53 -0500 Subject: fix(files_version): deprecated INameableVersion Signed-off-by: Eduardo Morales --- apps/files_versions/lib/Db/VersionEntity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files_versions/lib/Db/VersionEntity.php') diff --git a/apps/files_versions/lib/Db/VersionEntity.php b/apps/files_versions/lib/Db/VersionEntity.php index 1e1eca86886..4be57f8b097 100644 --- a/apps/files_versions/lib/Db/VersionEntity.php +++ b/apps/files_versions/lib/Db/VersionEntity.php @@ -84,8 +84,8 @@ class VersionEntity extends Entity implements JsonSerializable { * if nothing is found, we return an empty string * @param string $key key associated with the value */ - public function getMetadataValue(string $key): string { - return $this->metadata[$key] ?? ''; + public function getMetadataValue(string $key): ?string { + return $this->metadata[$key] ?? null; } /** -- cgit v1.2.3