Skip to content

Commit

Permalink
Fix: Make context key default null (#51080)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikspyratos authored Apr 16, 2024
1 parent 50a9491 commit 6a8b505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function config_path($path = '')
* @param mixed $default
* @return mixed|\Illuminate\Log\Context\Repository
*/
function context($key, $default = null)
function context($key = null, $default = null)
{
return match (true) {
is_null($key) => app(ContextRepository::class),
Expand Down

0 comments on commit 6a8b505

Please sign in to comment.