From 59e8d95cfd0e002eb168927b75ab9230f61166d3 Mon Sep 17 00:00:00 2001
From: Pavel Swindal
Date: Mon, 29 Apr 2024 16:48:08 +0200
Subject: [PATCH 1/2] minor fix
---
PHPGangsta/GoogleAuthenticator.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PHPGangsta/GoogleAuthenticator.php b/PHPGangsta/GoogleAuthenticator.php
index bf7d116..83f5682 100644
--- a/PHPGangsta/GoogleAuthenticator.php
+++ b/PHPGangsta/GoogleAuthenticator.php
@@ -109,7 +109,7 @@ public function getQRCodeGoogleUrl($name, $secret, $title = null, $params = arra
$urlencoded .= urlencode('&issuer='.urlencode($title));
}
- return "https://api.qrserver.com/v1/create-qr-code/?data=$urlencoded&size=${width}x${height}&ecc=$level";
+ return "https://api.qrserver.com/v1/create-qr-code/?data=$urlencoded&size={$width}x{$height}&ecc=$level";
}
/**
From 889fcf1508a20e71ccd10ff99b1016f5aacbb1be Mon Sep 17 00:00:00 2001
From: Pavel Swindal
Date: Mon, 29 Apr 2024 16:49:37 +0200
Subject: [PATCH 2/2] adjusted php version
---
composer.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/composer.json b/composer.json
index 9de7cc1..1878755 100644
--- a/composer.json
+++ b/composer.json
@@ -18,7 +18,7 @@
"issues": "https://github.com/PHPGangsta/GoogleAuthenticator/issues"
},
"require": {
- "php": ">=5.3"
+ "php": ">=8.2"
},
"autoload": {
"classmap": ["PHPGangsta/GoogleAuthenticator.php"]