From ea8ab880569cbaad07970fe503ea67c0b22577b5 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Fri, 14 May 2021 10:04:01 +0100 Subject: [PATCH] style: apply fixes from PHPStan --- src/Laravel/Commands/PestDatasetCommand.php | 3 ++- src/Laravel/Commands/PestInstallCommand.php | 3 ++- src/Laravel/Commands/PestTestCommand.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) 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');