From 440fa263c2f169d77cedfe519b6b5d62aee42843 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Wed, 20 Jan 2021 15:22:02 +0200 Subject: [PATCH] Oops, fixed bug #3160 --- system/src/Grav/Console/Cli/ClearCacheCommand.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/system/src/Grav/Console/Cli/ClearCacheCommand.php b/system/src/Grav/Console/Cli/ClearCacheCommand.php index 1f79e8f09..9a61b0454 100644 --- a/system/src/Grav/Console/Cli/ClearCacheCommand.php +++ b/system/src/Grav/Console/Cli/ClearCacheCommand.php @@ -12,7 +12,6 @@ namespace Grav\Console\Cli; use Grav\Common\Cache; use Grav\Console\GravCommand; use Symfony\Component\Console\Input\InputOption; -use function is_callable; /** * Class ClearCacheCommand @@ -47,7 +46,7 @@ class ClearCacheCommand extends GravCommand { // Old versions of Grav called this command after grav upgrade. // We need make this command to work with older GravCommand instance: - if (!is_callable($this, 'initializePlugins')) { + if (!method_exists($this, 'initializePlugins')) { Cache::clearCache('all'); return 0;