diff --git a/src/Illuminate/Foundation/helpers.php b/src/Illuminate/Foundation/helpers.php index 365c76516c0f..264b3e5440b0 100644 --- a/src/Illuminate/Foundation/helpers.php +++ b/src/Illuminate/Foundation/helpers.php @@ -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),