Skip to content

Commit 04fdd58

Browse files
authored
Merge pull request #109 from forkgroup/master
Fixed text() does not support PHP8
2 parents b96163d + 48691ba commit 04fdd58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/QrReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function text()
9191
{
9292
$this->decode();
9393

94-
if (method_exists($this->result, 'toString')) {
94+
if ($this->result !== false && method_exists($this->result, 'toString')) {
9595
return $this->result->toString();
9696
}
9797

0 commit comments

Comments
 (0)