Skip to content

Commit

Permalink
Oops, fixed bug #3160
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Jan 20, 2021
1 parent f5b1056 commit 440fa26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions system/src/Grav/Console/Cli/ClearCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Grav\Common\Cache;
use Grav\Console\GravCommand;
use Symfony\Component\Console\Input\InputOption;
use function is_callable;

/**
* Class ClearCacheCommand
Expand Down Expand Up @@ -47,7 +46,7 @@ protected function serve(): int
{
// 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;
Expand Down

0 comments on commit 440fa26

Please sign in to comment.