Skip to content

Commit

Permalink
Fix passing null to file_exists
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Jan 21, 2022
1 parent 0af1af8 commit 50597d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Console/RunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
) {
Expand Down

1 comment on commit 50597d8

@Tofandel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was apparently already fixed by e25f1d2

Please sign in to comment.