Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Aug 16, 2023
1 parent 24d1b55 commit 64eddfa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Commands/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ public function __construct(Preset $preset)
{
$this->files = $preset->filesystem();

if (\in_array(CreatesMatchingTest::class, class_uses_recursive($this))) {
/** @phpstan-ignore-next-line */
$this->addTestOptions();
}

parent::__construct($preset);
}

Expand All @@ -70,6 +65,11 @@ protected function configure()
$this->setName($this->getName())
->setDescription($this->getDescription())
->addArgument('name', InputArgument::REQUIRED, "The name of the {$this->fileType}");

if (\in_array(CreatesMatchingTest::class, class_uses_recursive($this))) {
/** @phpstan-ignore-next-line */
$this->addTestOptions();
}
}

/**
Expand Down

0 comments on commit 64eddfa

Please sign in to comment.