Skip to content

Commit 6194bb0

Browse files
committed
throw a QRException instead
and change the function signature
1 parent 6f78141 commit 6194bb0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Providers/Qr/BaseHTTPQRCodeProvider.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44

55
namespace RobThree\Auth\Providers\Qr;
66

7-
use RobThree\Auth\TwoFactorAuthException;
8-
97
abstract class BaseHTTPQRCodeProvider implements IQRCodeProvider
108
{
119
protected bool $verifyssl = true;
1210

13-
protected function getContent(string $url): string|bool
11+
protected function getContent(string $url): string
1412
{
1513
$curlhandle = curl_init();
1614

@@ -25,7 +23,7 @@ protected function getContent(string $url): string|bool
2523
));
2624
$data = curl_exec($curlhandle);
2725
if ($data === false) {
28-
throw new TwoFactorAuthException(curl_error($curlhandle));
26+
throw new QRException(curl_error($curlhandle));
2927
}
3028

3129
curl_close($curlhandle);

0 commit comments

Comments
 (0)