From f5ad8576006bd4ea0553b96a97e6b449a853af48 Mon Sep 17 00:00:00 2001 From: Joby Elliott Date: Thu, 30 Aug 2018 12:32:10 -0600 Subject: [PATCH] shift and unshift were named wrong --- src/FlatArrayTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FlatArrayTrait.php b/src/FlatArrayTrait.php index b720415..6123891 100644 --- a/src/FlatArrayTrait.php +++ b/src/FlatArrayTrait.php @@ -27,7 +27,7 @@ trait FlatArrayTrait return $out; } - public function shift(?string $name, $value) + public function unshift(?string $name, $value) { $arr = $this->get($name); if ($arr !== null && !is_array($arr)) { @@ -37,7 +37,7 @@ trait FlatArrayTrait $this->set($name, $arr); } - public function unshift(?string $name) + public function shift(?string $name) { $arr = $this->get($name); if ($arr !== null && !is_array($arr)) {