shift and unshift were named wrong

This commit is contained in:
Joby Elliott 2018-08-30 12:32:10 -06:00
parent a181bb0abc
commit f5ad857600

View file

@ -27,7 +27,7 @@ trait FlatArrayTrait
return $out; return $out;
} }
public function shift(?string $name, $value) public function unshift(?string $name, $value)
{ {
$arr = $this->get($name); $arr = $this->get($name);
if ($arr !== null && !is_array($arr)) { if ($arr !== null && !is_array($arr)) {
@ -37,7 +37,7 @@ trait FlatArrayTrait
$this->set($name, $arr); $this->set($name, $arr);
} }
public function unshift(?string $name) public function shift(?string $name)
{ {
$arr = $this->get($name); $arr = $this->get($name);
if ($arr !== null && !is_array($arr)) { if ($arr !== null && !is_array($arr)) {