Skip to content

Commit 252d568

Browse files
authored
Fix PHP 7.3 compatibility
1 parent 13fc389 commit 252d568

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)