]> git.mxchange.org Git - friendica.git/commitdiff
Fix depreation message for old bin files
authorArt4 <art4@wlabs.de>
Wed, 8 Jan 2025 22:07:16 +0000 (22:07 +0000)
committerArt4 <art4@wlabs.de>
Wed, 8 Jan 2025 22:07:16 +0000 (22:07 +0000)
src/Console/AbstractConsole.php

index f9c413b915e4603f912f53872b4fff40c946294b..0b8c1d6eb8085dd7732692506f743f1c325ca8ca 100644 (file)
@@ -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));
                }
        }