Skip to content

Commit 6a8b505

Browse files
authored
Fix: Make context key default null (#51080)
1 parent 50a9491 commit 6a8b505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ function config_path($path = '')
298298
* @param mixed $default
299299
* @return mixed|\Illuminate\Log\Context\Repository
300300
*/
301-
function context($key, $default = null)
301+
function context($key = null, $default = null)
302302
{
303303
return match (true) {
304304
is_null($key) => app(ContextRepository::class),

0 commit comments

Comments
 (0)