Skip to content

Commit

Permalink
Fixed false negative message about stecman/symfony-console-completion…
Browse files Browse the repository at this point in the history
… packege
  • Loading branch information
geega authored and Naktibalda committed Aug 12, 2022
1 parent 0ce6194 commit 83f6f7b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Codeception/Command/Completion.php
@@ -1,11 +1,6 @@
<?php
namespace Codeception\Command;

if (!class_exists('Stecman\Component\Symfony\Console\BashCompletion\Completion')) {
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\CompletionCommand;
Expand All @@ -15,6 +10,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)
Expand Down

0 comments on commit 83f6f7b

Please sign in to comment.