Skip to content

Commit 93f5a5d

Browse files
committed
Fix issue when $magickBinaryPath is empty
1 parent f976d93 commit 93f5a5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public static function findMagickBinaryPath(?string $magickBinaryPath): string
117117
throw new MagickBinaryNotFoundException($magickBinaryPath);
118118
}
119119

120-
if (!\is_executable($magickBinaryPath)) {
120+
if ($magickBinaryPath && !\is_executable($magickBinaryPath)) {
121121
throw new \InvalidArgumentException(\sprintf('The specified script (%s) is not executable.', $magickBinaryPath));
122122
}
123123

0 commit comments

Comments
 (0)