diff --git a/composer.json b/composer.json index 9869ac4f..b7223999 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "doctrine/dbal": "^2.9", "doctrine/migrations": "^2.0", "doctrine/orm": "^2.5", - "endroid/qr-code": "^1.7", + "endroid/qr-code": "^3.6", "firebase/php-jwt": "^4.0", "geoip2/geoip2": "^2.9", "guzzlehttp/guzzle": "^6.3", @@ -34,7 +34,7 @@ "phly/phly-event-dispatcher": "^1.0", "predis/predis": "^1.1", "pugx/shortid-php": "^0.5", - "shlinkio/shlink-common": "^2.0", + "shlinkio/shlink-common": "^2.1", "shlinkio/shlink-event-dispatcher": "^1.0", "shlinkio/shlink-installer": "^2.1", "shlinkio/shlink-ip-geolocation": "^1.0", diff --git a/module/Core/src/Action/QrCodeAction.php b/module/Core/src/Action/QrCodeAction.php index 31ead932..ef294265 100644 --- a/module/Core/src/Action/QrCodeAction.php +++ b/module/Core/src/Action/QrCodeAction.php @@ -70,8 +70,8 @@ class QrCodeAction implements MiddlewareInterface $size = $this->getSizeParam($request); $qrCode = new QrCode((string) $request->getUri()->withPath($path)->withQuery('')); - $qrCode->setSize($size) - ->setPadding(0); + $qrCode->setSize($size); + $qrCode->setMargin(0); return new QrCodeResponse($qrCode); }