Skip to content

Commit c01202b

Browse files
committed
Make verifySSL argument as first option in constructor
1 parent 0453a94 commit c01202b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/Providers/Qr/GoogleChartsQrCodeProvider.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,18 @@ class GoogleChartsQrCodeProvider extends BaseHTTPQRCodeProvider
1515
public $encoding;
1616

1717
/**
18+
* @param bool $verifyssl
1819
* @param string $errorcorrectionlevel
1920
* @param int $margin
2021
* @param string $encoding
2122
*/
22-
public function __construct($errorcorrectionlevel = 'L', $margin = 4, $encoding = 'UTF-8', $verifySSL = true)
23+
public function __construct($verifyssl = false, $errorcorrectionlevel = 'L', $margin = 4, $encoding = 'UTF-8')
2324
{
24-
$this->verifyssl = $verifySSL;
25+
if (!is_bool($verifyssl)) {
26+
throw new QRException('VerifySSL must be bool');
27+
}
28+
29+
$this->verifyssl = $verifyssl;
2530

2631
$this->errorcorrectionlevel = $errorcorrectionlevel;
2732
$this->margin = $margin;

0 commit comments

Comments
 (0)