From 7b7854808085086d8a8fc23f8806cec77fdb62ac Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 17 Oct 2020 18:13:30 +0300 Subject: [PATCH] feat(entries): use Atomastic Arrays for Entries #478 --- src/flextype/Foundation/Entries/Entries.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/flextype/Foundation/Entries/Entries.php b/src/flextype/Foundation/Entries/Entries.php index afc7724d..d45bf335 100755 --- a/src/flextype/Foundation/Entries/Entries.php +++ b/src/flextype/Foundation/Entries/Entries.php @@ -9,7 +9,7 @@ declare(strict_types=1); namespace Flextype\Foundation\Entries; -use Flextype\Component\Arrays\Arrays; +use Atomastic\Arrays\Arrays; use function array_merge; use function collect_filter; @@ -40,7 +40,7 @@ class Entries */ public function getStorage(string $key) { - return Arrays::get($this->storage, $key); + return arrays($this->storage)->get($key); } /** @@ -51,7 +51,7 @@ class Entries */ public function setStorage(string $key, $value) { - Arrays::set($this->storage, $key, $value); + $this->storage = arrays($this->storage)->set($key, $value)->toArray(); } /**