Skip to content

Commit d94f38d

Browse files
author
Phil Sturgeon
authored
Merge pull request #1 from colinodell/patch-1
Fix PHP 7.3 compatibility
2 parents 13fc389 + 252d568 commit d94f38d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ private function loadXPathDocument($html)
6363

6464
private function isValidPhpInfoHtml()
6565
{
66-
return $this->xpath->query('//head//title')[0]->nodeValue === 'phpinfo()';
66+
return strpos($this->xpath->query('//head//title')[0]->nodeValue, 'phpinfo()') !== false;
6767
}
6868
}

0 commit comments

Comments
 (0)