diff --git a/src/Support/Context.php b/src/Support/Context.php index a8e261061..baeec1019 100644 --- a/src/Support/Context.php +++ b/src/Support/Context.php @@ -42,7 +42,7 @@ public function add($key, $value, $k = null) { $results = $this->getArray($key); - if ($k !== null) { + if ($k === null) { $results[] = $value; } else { $results[$k] = $value;