mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
fix errors from type checks
This commit is contained in:
@ -37,8 +37,7 @@ final class PestInstallCommand extends Command
|
|||||||
$pest = base_path('tests/Pest.php');
|
$pest = base_path('tests/Pest.php');
|
||||||
/* @phpstan-ignore-next-line */
|
/* @phpstan-ignore-next-line */
|
||||||
$helpers = base_path('tests/Helpers.php');
|
$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) {
|
foreach ([$pest, $helpers] as $file) {
|
||||||
if (File::exists($file)) {
|
if (File::exists($file)) {
|
||||||
@ -65,8 +64,9 @@ final class PestInstallCommand extends Command
|
|||||||
/**
|
/**
|
||||||
* Determine if this is a Lumen application.
|
* 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');
|
return Str::startsWith(app()->version(), 'Lumen');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user