Code quality improvements

This commit is contained in:
Nuno Maduro
2022-09-16 11:27:17 +01:00
parent e9564febaf
commit 45011ebd14
42 changed files with 266 additions and 278 deletions

View File

@ -52,8 +52,8 @@ final class PestTestCommand extends Command
/* @phpstan-ignore-next-line */
$target = base_path($relativePath);
if (! File::isDirectory(dirname($target))) {
File::makeDirectory(dirname($target), 0777, true, true);
if (! File::isDirectory(dirname((string) $target))) {
File::makeDirectory(dirname((string) $target), 0777, true, true);
}
if (File::exists($target) && ! (bool) $this->option('force')) {