mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-30 12:07:32 +00:00
🔧 QRGdImage: fix "Implicit conversion from float to int" in PHP 8.1
This commit is contained in:
@@ -150,10 +150,10 @@ class QRGdImage extends QROutputAbstract{
|
||||
$this->options->drawCircularModules && $this->matrix->checkTypeNotIn($x, $y, $this->options->keepAsSquare)
|
||||
? imagefilledellipse(
|
||||
$this->image,
|
||||
($x * $this->scale) + ($this->scale / 2),
|
||||
($y * $this->scale) + ($this->scale / 2),
|
||||
2 * $this->options->circleRadius * $this->scale,
|
||||
2 * $this->options->circleRadius * $this->scale,
|
||||
(int)(($x * $this->scale) + ($this->scale / 2)),
|
||||
(int)(($y * $this->scale) + ($this->scale / 2)),
|
||||
(int)(2 * $this->options->circleRadius * $this->scale),
|
||||
(int)(2 * $this->options->circleRadius * $this->scale),
|
||||
$color
|
||||
)
|
||||
: imagefilledrectangle(
|
||||
|
||||
Reference in New Issue
Block a user