Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Oct 6, 2023
1 parent 55807ff commit ea79f4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Drivers/Gd/Modifiers/DrawEllipseModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ public function apply(ImageInterface $image): ImageInterface

imagesetthickness($frame->getCore(), $this->ellipse()->getBorderSize());

// gd's imageellipse doesn't respect imagesetthickness so i use
// imagearc with 359.9 degrees here.
// gd's imageellipse ignores imagesetthickness so i use
// imagearc with 360 degrees instead.
imagearc(
$frame->getCore(),
$this->position->getX(),
$this->position->getY(),
$this->ellipse()->getWidth(),
$this->ellipse()->getHeight(),
0,
359.99,
360,
$this->getBorderColor()->toInt()
);
} else {
Expand Down

0 comments on commit ea79f4b

Please sign in to comment.