Fixes for prop types for secure context

This commit is contained in:
David Bomba
2026-01-25 18:33:35 +11:00
parent acec09ad0d
commit 1bafc7aa89

View File

@@ -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) ?? [];