From 50597d81a6be4601c62bd35417e70bc982d6d32a Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Fri, 21 Jan 2022 11:58:55 +0100 Subject: [PATCH] Fix passing null to file_exists --- src/Console/RunCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Console/RunCommand.php b/src/Console/RunCommand.php index 1f6b8d2..4a54a4c 100644 --- a/src/Console/RunCommand.php +++ b/src/Console/RunCommand.php @@ -218,8 +218,9 @@ protected function loadTaskContainer() $path = $this->input->getOption('path', ''); $file = $this->input->getOption('conf'); + $envoyFile = $path; - if (! file_exists($envoyFile = $path) + if (! file_exists($envoyFile ?? '') && ! file_exists($envoyFile = getcwd().'/'.$file) && ! file_exists($envoyFile .= '.blade.php') ) {