From c23f2e4bd6bf8ac7c557c2cf41ab80c61147d92a Mon Sep 17 00:00:00 2001 From: Michael Dyrynda Date: Sat, 23 May 2020 21:09:28 +0930 Subject: [PATCH] fix errors from type checks --- src/Laravel/Commands/PestInstallCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Laravel/Commands/PestInstallCommand.php b/src/Laravel/Commands/PestInstallCommand.php index 696eba6b..8b617c87 100644 --- a/src/Laravel/Commands/PestInstallCommand.php +++ b/src/Laravel/Commands/PestInstallCommand.php @@ -37,8 +37,7 @@ final class PestInstallCommand extends Command $pest = base_path('tests/Pest.php'); /* @phpstan-ignore-next-line */ $helpers = base_path('tests/Helpers.php'); - /* @phpstan-ignore-next-line */ - $stubs = $this->isLumen() ? 'stubs/Lumen' : 'stubs/Laravel'; + $stubs = $this->isLumen() ? 'stubs/Lumen' : 'stubs/Laravel'; foreach ([$pest, $helpers] as $file) { if (File::exists($file)) { @@ -65,8 +64,9 @@ final class PestInstallCommand extends Command /** * Determine if this is a Lumen application. */ - protected function isLumen(): bool + private function isLumen(): bool { + /* @phpstan-ignore-next-line */ return Str::startsWith(app()->version(), 'Lumen'); } }