Skip to content

Commit

Permalink
refactor: change global __get return form source() to all() (#382)
Browse files Browse the repository at this point in the history
not BC but improvement `source()` union of `all()`
  • Loading branch information
SonyPradana authored Sep 14, 2024
1 parent 2c51864 commit 37bb6cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/System/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ public function offsetUnset($offset): void
*/
public function __get($key)
{
return $this->source()->get($key);
return $this->all()[$key] ?? null;
}

/**
Expand Down

0 comments on commit 37bb6cf

Please sign in to comment.