Skip to content

Commit

Permalink
fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sergix44 committed Dec 27, 2023
1 parent b8452f2 commit db2d85a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.13",
"sapientpro/image-comparator": "^1.0",
"pestphp/pest": "^2.17"
"pestphp/pest": "^2.29"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 3 additions & 1 deletion src/Drivers/Imagick/ImagickText.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public function getBox(): Box
$draw->setFontSize($this->size);
$draw->setTextKerning($this->kerning);
$draw->setGravity($this->align->toImagickGravity());
$draw->setStrokeWidth($this->stroke);
if ($this->stroke !== null) {
$draw->setStrokeWidth($this->stroke);
}
$draw->setStrokeAntialias(false);
$draw->setStrokeOpacity(1);
$draw->setFillOpacity(1);
Expand Down

0 comments on commit db2d85a

Please sign in to comment.