Skip to content

Commit

Permalink
Merge pull request #6541 from geega/fix-false-negative-message-for-ex…
Browse files Browse the repository at this point in the history
…ist-packege-symfony-console-completion

Fixed false negative message about missing stecman/symfony-console-completion packege
  • Loading branch information
Naktibalda committed Aug 12, 2022
2 parents 3d5f777 + c77ee4d commit 494ebe0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Codeception/Command/Completion.php
Expand Up @@ -4,12 +4,6 @@

namespace Codeception\Command;

// phpcs:ignoreFile PSR1.Files.SideEffects.FoundWithSymbols
if (!class_exists(ConsoleCompletion::class)) {
echo "Please install `stecman/symfony-console-completion\n` to enable auto completion";
return;
}

use Codeception\Configuration;
use Stecman\Component\Symfony\Console\BashCompletion\Completion as ConsoleCompletion;
use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionInterface as ConsoleCompletionInterface;
Expand All @@ -21,6 +15,12 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

// phpcs:ignoreFile PSR1.Files.SideEffects.FoundWithSymbols
if (!class_exists(ConsoleCompletion::class)) {
echo "Please install `stecman/symfony-console-completion\n` to enable auto completion";
return;
}

class Completion extends CompletionCommand
{
protected function configureCompletion(CompletionHandler $handler): void
Expand Down

0 comments on commit 494ebe0

Please sign in to comment.