Skip to content

Commit

Permalink
Merge pull request #109 from forkgroup/master
Browse files Browse the repository at this point in the history
Fixed text() does not support PHP8
  • Loading branch information
khanamiryan committed Jul 13, 2021
2 parents b96163d + 48691ba commit 04fdd58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/QrReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function text()
{
$this->decode();

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

Expand Down

0 comments on commit 04fdd58

Please sign in to comment.