From 64eddfad2d112be2f35d998d978e0b6dc658558e Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 16 Aug 2023 08:39:53 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- src/Commands/Generator.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Commands/Generator.php b/src/Commands/Generator.php index 5f04a33..7194b5e 100644 --- a/src/Commands/Generator.php +++ b/src/Commands/Generator.php @@ -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); } @@ -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(); + } } /**