Add bool to the condition

This commit is contained in:
Reza Amini
2021-07-22 01:41:12 +04:30
committed by GitHub
parent 5e0a0855ea
commit 595bbe32a4

View File

@ -56,7 +56,7 @@ final class PestTestCommand extends Command
File::makeDirectory(dirname($target), 0777, true, true);
}
if (File::exists($target) and !$this->option('force')) {
if (File::exists($target) and !(bool) $this->option('force')) {
throw new InvalidConsoleArgument(sprintf('%s already exist', $target));
}