From 595bbe32a48b8e419e70b3fb9d26076d46a05ba2 Mon Sep 17 00:00:00 2001 From: Reza Amini Date: Thu, 22 Jul 2021 01:41:12 +0430 Subject: [PATCH] Add bool to the condition --- src/Laravel/Commands/PestTestCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Laravel/Commands/PestTestCommand.php b/src/Laravel/Commands/PestTestCommand.php index c8eebcba..7561355b 100644 --- a/src/Laravel/Commands/PestTestCommand.php +++ b/src/Laravel/Commands/PestTestCommand.php @@ -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)); }