Skip to content

Commit

Permalink
fix signature of optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 8, 2023
1 parent 2516228 commit e459261
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Drivers/ImageDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ public function quality(int $quality): self;

public function format(string $format): self;

public function optimize(OptimizerChain $optimizerChain): self;
public function optimize(?OptimizerChain $optimizerChain = null): self;
}
2 changes: 1 addition & 1 deletion src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public function format(string $format): ImageDriver
return $this;
}

public function optimize(OptimizerChain $optimizerChain): ImageDriver
public function optimize(?OptimizerChain $optimizerChain = null): ImageDriver
{
$this->imageDriver->optimize($optimizerChain);

Expand Down

0 comments on commit e459261

Please sign in to comment.