diff --git a/src/Laravel/Commands/PestDatasetCommand.php b/src/Laravel/Commands/PestDatasetCommand.php index 14bd79ac..e5cab365 100644 --- a/src/Laravel/Commands/PestDatasetCommand.php +++ b/src/Laravel/Commands/PestDatasetCommand.php @@ -36,7 +36,8 @@ final class PestDatasetCommand extends Command */ public function handle(): void { - TestSuite::getInstance(base_path(), $this->option('test-directory', 'tests')); + /* @phpstan-ignore-next-line */ + TestSuite::getInstance(base_path(), $this->option('test-directory')); /** @var string $name */ $name = $this->argument('name'); diff --git a/src/Laravel/Commands/PestInstallCommand.php b/src/Laravel/Commands/PestInstallCommand.php index 98e201fb..75f6dd54 100644 --- a/src/Laravel/Commands/PestInstallCommand.php +++ b/src/Laravel/Commands/PestInstallCommand.php @@ -35,7 +35,8 @@ final class PestInstallCommand extends Command */ public function handle(): void { - TestSuite::getInstance(base_path(), $this->option('test-directory', 'tests')); + /* @phpstan-ignore-next-line */ + TestSuite::getInstance(base_path(), $this->option('test-directory')); /* @phpstan-ignore-next-line */ $pest = base_path(testDirectory('Pest.php')); diff --git a/src/Laravel/Commands/PestTestCommand.php b/src/Laravel/Commands/PestTestCommand.php index 2c3aa1b8..55d9dc3a 100644 --- a/src/Laravel/Commands/PestTestCommand.php +++ b/src/Laravel/Commands/PestTestCommand.php @@ -35,7 +35,8 @@ final class PestTestCommand extends Command */ public function handle(): void { - TestSuite::getInstance(base_path(), $this->option('test-directory', 'tests')); + /* @phpstan-ignore-next-line */ + TestSuite::getInstance(base_path(), $this->option('test-directory')); /** @var string $name */ $name = $this->argument('name');