Skip to content

Commit e76f31e

Browse files
authored
Merge pull request #83 from brainfoolong/master
convert issuer to string prevents php 8.1 errors
2 parents 4203749 + dc9f168 commit e76f31e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/TwoFactorAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public function getQRText($label, $secret)
272272
{
273273
return 'otpauth://totp/' . rawurlencode($label)
274274
. '?secret=' . rawurlencode($secret)
275-
. '&issuer=' . rawurlencode($this->issuer)
275+
. '&issuer=' . rawurlencode((string)$this->issuer)
276276
. '&period=' . intval($this->period)
277277
. '&algorithm=' . rawurlencode(strtoupper($this->algorithm))
278278
. '&digits=' . intval($this->digits);

0 commit comments

Comments
 (0)