Skip to content

Commit e3832ce

Browse files
committed
Fix bad patch
1 parent 807e1e5 commit e3832ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NewCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -587,10 +587,10 @@ protected function installPest(string $directory, InputInterface $input, OutputI
587587
$this->phpBinary().' ./vendor/bin/pest --init',
588588
];
589589

590+
if ($this->usingStarterKit($input)) {
590591
$commands[] = $composerBinary.' require pestphp/pest-plugin-drift --dev';
591592
$commands[] = $this->phpBinary().' ./vendor/bin/pest --drift';
592593
$commands[] = $composerBinary.' remove pestphp/pest-plugin-drift --dev';
593-
if ($this->usingStarterKit($input)) {
594594
}
595595

596596
$this->runCommands($commands, $input, $output, workingPath: $directory, env: [
@@ -615,8 +615,8 @@ protected function installPest(string $directory, InputInterface $input, OutputI
615615
);
616616
}
617617

618+
if ($this->usingStarterKit($input) && $input->getOption('phpunit')) {
618619
$this->deleteFile($directory.'/tests/Pest.php');
619-
if (($this->usingStarterKit($input)) && $input->getOption('phpunit')) {
620620
}
621621

622622
$this->commitChanges('Install Pest', $directory, $input, $output);

0 commit comments

Comments
 (0)