Skip to content

Commit

Permalink
#303: Update data type from int to float. (#321)
Browse files Browse the repository at this point in the history
* Update data type from int to float.

* Revert back by mistake the maxWidth
  • Loading branch information
edutrul authored May 8, 2023
1 parent 226d507 commit a447473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/claviska/SimpleImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ public function textBox(string $text, array $options): static
/**
* Receives a text and breaks into LINES.
*/
private function textSeparateLines(string $text, string $fontFile, int $fontSize, int $maxWidth): array
private function textSeparateLines(string $text, string $fontFile, float $fontSize, int $maxWidth): array
{
$lines = [];
$words = self::textSeparateWords($text);
Expand Down

0 comments on commit a447473

Please sign in to comment.