1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-13 17:34:04 +02:00

Fix type error

This commit is contained in:
Oliver Vogel
2023-10-06 16:20:50 +02:00
parent 55807ffed8
commit ea79f4b669

View File

@@ -26,8 +26,8 @@ class DrawEllipseModifier extends AbstractDrawModifier implements ModifierInterf
imagesetthickness($frame->getCore(), $this->ellipse()->getBorderSize()); imagesetthickness($frame->getCore(), $this->ellipse()->getBorderSize());
// gd's imageellipse doesn't respect imagesetthickness so i use // gd's imageellipse ignores imagesetthickness so i use
// imagearc with 359.9 degrees here. // imagearc with 360 degrees instead.
imagearc( imagearc(
$frame->getCore(), $frame->getCore(),
$this->position->getX(), $this->position->getX(),
@@ -35,7 +35,7 @@ class DrawEllipseModifier extends AbstractDrawModifier implements ModifierInterf
$this->ellipse()->getWidth(), $this->ellipse()->getWidth(),
$this->ellipse()->getHeight(), $this->ellipse()->getHeight(),
0, 0,
359.99, 360,
$this->getBorderColor()->toInt() $this->getBorderColor()->toInt()
); );
} else { } else {