Skip to content

Commit e3e3cef

Browse files
committed
Fix issue making path unresolvable if null
1 parent b105bce commit e3e3cef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ Tests/Resources/outputs/*
88

99
phpunit.xml
1010
.phpunit.result.cache
11+
.phpunit.cache

src/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public static function create(?string $magickBinaryPath = null): self
110110
public static function findMagickBinaryPath(?string $magickBinaryPath): string
111111
{
112112
// Delete trimming directory separator
113-
$magickBinaryPath = self::cleanPath($magickBinaryPath, true);
113+
$magickBinaryPath = self::cleanPath((string) $magickBinaryPath, true);
114114

115115
if (!$magickBinaryPath) {
116116
$magickBinaryPath = (new ExecutableFinder())->find('magick');

0 commit comments

Comments
 (0)