Skip to content

Commit

Permalink
改进兼容性
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Apr 23, 2022
1 parent 3b60feb commit a450602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Captcha.php
Expand Up @@ -224,7 +224,7 @@ public function create(string $config = null, bool $api = false): Response
$y = $this->fontSize + mt_rand(10, 20);
$angle = $this->math ? 0 : mt_rand(-40, 40);

imagettftext($this->im, $this->fontSize, $angle, $x, $y, $this->color, $fontttf, $char);
imagettftext($this->im, $this->fontSize, $angle, (int) $x, (int) $y, $this->color, $fontttf, $char);
}

ob_start();
Expand Down

0 comments on commit a450602

Please sign in to comment.