style: apply fixes from PHPStan

This commit is contained in:
Owen Voke
2021-05-14 10:04:01 +01:00
parent 564a21badd
commit ea8ab88056
3 changed files with 6 additions and 3 deletions

View File

@ -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');

View File

@ -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'));

View File

@ -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');