Skip to content

Commit

Permalink
Fix $thickness typehint in ellipse() (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaxxx authored Oct 12, 2023
1 parent 969de5e commit 587410c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/claviska/SimpleImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -1616,12 +1616,12 @@ public function dot(int $x, int $y, string|array $color): static
* @param int $width The ellipse width.
* @param int $height The ellipse height.
* @param string|array $color The ellipse color.
* @param int|array $thickness Line thickness in pixels or 'filled' (default 1).
* @param string|int|array $thickness Line thickness in pixels or 'filled' (default 1).
* @return SimpleImage
*
* @throws Exception
*/
public function ellipse(int $x, int $y, int $width, int $height, string|array $color, int|array $thickness = 1): static
public function ellipse(int $x, int $y, int $width, int $height, string|array $color, string|int|array $thickness = 1): static
{
// Allocate the color
$tempColor = $this->allocateColor($color);
Expand Down

0 comments on commit 587410c

Please sign in to comment.