Skip to content

Commit

Permalink
[BUGFIX] Fix array key not exists warning
Browse files Browse the repository at this point in the history
  • Loading branch information
garbast committed Jan 2, 2025
1 parent feba7f3 commit 6817c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Hooks/ClearCacheHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 6817c5b

Please sign in to comment.