From fd9fdc51f160cc71cabd3daa777c69e119bf2d4f Mon Sep 17 00:00:00 2001 From: Richard Dern Date: Thu, 18 Apr 2024 01:52:09 +0200 Subject: [PATCH] Enab;e use of dot notation --- app/Classes/MetadataManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Classes/MetadataManager.php b/app/Classes/MetadataManager.php index abf8189..2ab28f4 100644 --- a/app/Classes/MetadataManager.php +++ b/app/Classes/MetadataManager.php @@ -100,13 +100,13 @@ protected function writeToDisk(array $data) */ public function set($key, $value) { - $this->content->put($key, $value); + $this->setMany(collect([$key => $value])->undot()); } /** * Sets multiple metadata at once. */ - public function setMany(array $array) + public function setMany($array) { foreach ($array as $key => $value) { $this->content->put($key, $value);