Skip to content

Commit 0027049

Browse files
committed
Automatically find "magick" binary
Bug fix
1 parent 03d55ec commit 0027049

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Command.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Command
7676
*/
7777
protected $version;
7878

79-
public function __construct(?string $magickBinaryPath = null)
79+
public function __construct(?string $magickBinaryPath = '')
8080
{
8181
$magickBinaryPath = self::findMagickBinaryPath($magickBinaryPath);
8282

@@ -306,11 +306,11 @@ public function getCommand(): string
306306
/**
307307
* Add a file specification to the command, mostly for source or destination file.
308308
*/
309-
public function file(string $source, bool $checkIfFileExists = true, bool $appendToCommend = false): self
309+
public function file(string $source, bool $checkIfFileExists = true, bool $appendToCommand = false): self
310310
{
311311
$source = $checkIfFileExists ? $this->checkExistingFile($source) : self::cleanPath($source);
312312
$source = \str_replace('\\', '/', $source);
313-
if ($appendToCommend) {
313+
if ($appendToCommand) {
314314
$this->commandToAppend[] = $source;
315315
} else {
316316
$this->command[] = $source;

0 commit comments

Comments
 (0)