From 8c39f3f51cd907337fca714b9ac84702671086ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=A1=82=E4=BB=BB?= <916809498@qq.com> Date: Wed, 23 Dec 2020 18:10:54 +0800 Subject: [PATCH] Update Context.php --- src/Support/Context.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;