diff --git a/app/Utils/Traits/WithSecureContext.php b/app/Utils/Traits/WithSecureContext.php index 77aae32e15..e49a60d6a0 100644 --- a/app/Utils/Traits/WithSecureContext.php +++ b/app/Utils/Traits/WithSecureContext.php @@ -23,7 +23,7 @@ trait WithSecureContext * @throws \Psr\Container\ContainerExceptionInterface * @throws \Psr\Container\NotFoundExceptionInterface */ - public function getContext(string $key): mixed + public function getContext(?string $key): mixed { $context = \Illuminate\Support\Facades\Cache::get($key) ?? [];