From 6817c5b15b81fc5fb645306f18aece92ebbee0c7 Mon Sep 17 00:00:00 2001 From: Sebastian Fischer Date: Thu, 2 Jan 2025 21:30:58 +0100 Subject: [PATCH] [BUGFIX] Fix array key not exists warning --- Classes/Hooks/ClearCacheHook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Hooks/ClearCacheHook.php b/Classes/Hooks/ClearCacheHook.php index ab19b7a..21243cb 100644 --- a/Classes/Hooks/ClearCacheHook.php +++ b/Classes/Hooks/ClearCacheHook.php @@ -16,7 +16,7 @@ public function __construct(protected PhpFrontend $classCache) */ public function clearCachePostProc(array $parameters): void { - if (Environment::getContext()->isDevelopment() && $parameters['cacheCmd'] === 'all') { + if (Environment::getContext()->isDevelopment() && ($parameters['cacheCmd'] ?? '') === 'all') { $this->classCache->flush(); } }