diff --git a/src/Console/AbstractConsole.php b/src/Console/AbstractConsole.php index f9c413b915..0b8c1d6eb8 100644 --- a/src/Console/AbstractConsole.php +++ b/src/Console/AbstractConsole.php @@ -32,7 +32,7 @@ abstract class AbstractConsole extends Console */ protected function checkDeprecated(string $command): void { - if (substr($this->executable, -strlen(CoreConsole::getDefaultExecutable())) === CoreConsole::getDefaultExecutable()) { + if (substr($this->executable, -strlen(CoreConsole::getDefaultExecutable())) !== CoreConsole::getDefaultExecutable()) { $this->out(sprintf("'%s' is deprecated and will removed. Please use 'bin/console.php %s' instead", $this->executable, $command)); } }