mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-25 02:10:18 -06:00
#917 Fixed cast to int on QR code action
This commit is contained in:
parent
a72dc16d85
commit
fe59a5ad86
@ -50,7 +50,7 @@ class QrCodeAction implements MiddlewareInterface
|
||||
|
||||
$query = $request->getQueryParams();
|
||||
// Size attribute is deprecated
|
||||
$size = $this->normalizeSize($request->getAttribute('size', $query['size'] ?? self::DEFAULT_SIZE));
|
||||
$size = $this->normalizeSize((int) $request->getAttribute('size', $query['size'] ?? self::DEFAULT_SIZE));
|
||||
|
||||
$qrCode = new QrCode($shortUrl->toString($this->domainConfig));
|
||||
$qrCode->setSize($size);
|
||||
|
Loading…
Reference in New Issue
Block a user