Skip to content

Commit

Permalink
Merge pull request #873 from eleven26/patch-1
Browse files Browse the repository at this point in the history
Update Context.php
  • Loading branch information
jqhph authored Dec 23, 2020
2 parents f683105 + 8c39f3f commit 54adf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 54adf20

Please sign in to comment.