Skip to content

Commit 760f8ac

Browse files
committed
Fix issue with MagickBinaryNotFoundException when path is null
1 parent 7f54ac8 commit 760f8ac

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
@@ -112,7 +112,7 @@ public static function findMagickBinaryPath(?string $magickBinaryPath): string
112112
}
113113

114114
if (!$magickBinaryPath) {
115-
throw new MagickBinaryNotFoundException($magickBinaryPath);
115+
throw new MagickBinaryNotFoundException((string) $magickBinaryPath);
116116
}
117117

118118
// Add a proper directory separator at the end if path is not empty.

0 commit comments

Comments
 (0)