mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Add bool to the condition
This commit is contained in:
@ -56,7 +56,7 @@ final class PestTestCommand extends Command
|
|||||||
File::makeDirectory(dirname($target), 0777, true, true);
|
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));
|
throw new InvalidConsoleArgument(sprintf('%s already exist', $target));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user