diff --git a/src/Console/Thanks.php b/src/Console/Thanks.php index dba31f53..157f0798 100644 --- a/src/Console/Thanks.php +++ b/src/Console/Thanks.php @@ -46,14 +46,20 @@ final class Thanks $bootstrapper = new BootView($this->output); $bootstrapper->boot(); - $wantsToSupport = getenv('PEST_NO_SUPPORT') !== 'true' && $this->input->isInteractive() && (new SymfonyQuestionHelper())->ask( - new ArrayInput([]), - $this->output, - new ConfirmationQuestion( - ' Wanna show Pest some love by starring it on GitHub?', - false, - ) - ); + $wantsToSupport = false; + + if (getenv('PEST_NO_SUPPORT') !== 'true' && $this->input->isInteractive()) { + $wantsToSupport = (new SymfonyQuestionHelper())->ask( + new ArrayInput([]), + $this->output, + new ConfirmationQuestion( + ' Wanna show Pest some love by starring it on GitHub?', + false, + ) + ); + + View::render('components.new-line'); + } if ($wantsToSupport === true) { if (PHP_OS_FAMILY == 'Darwin') { diff --git a/src/Plugins/Init.php b/src/Plugins/Init.php index 2cedc83b..40c988ab 100644 --- a/src/Plugins/Init.php +++ b/src/Plugins/Init.php @@ -66,7 +66,7 @@ final class Init implements HandlesArguments /** * Initializes the tests directory. */ - private function init(): never + private function init(): void { $testsBaseDir = "{$this->testSuite->rootPath}/tests"; @@ -97,7 +97,9 @@ final class Init implements HandlesArguments continue; } - @mkdir(dirname($toPath)); + if (! is_dir(dirname($toPath))) { + mkdir(dirname($toPath)); + } copy($fromPath, $toPath);