fix errors from type checks

This commit is contained in:
Michael Dyrynda
2020-05-23 21:09:28 +09:30
parent 4496e9d9ee
commit c23f2e4bd6

View File

@ -37,7 +37,6 @@ 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';
foreach ([$pest, $helpers] as $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');
}
}