Fix depreation message for old bin files

This commit is contained in:
Art4 2025-01-08 22:07:16 +00:00
parent 275b383be7
commit 744bf9f971

View file

@ -32,7 +32,7 @@ abstract class AbstractConsole extends Console
*/ */
protected function checkDeprecated(string $command): void 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)); $this->out(sprintf("'%s' is deprecated and will removed. Please use 'bin/console.php %s' instead", $this->executable, $command));
} }
} }