Skip to content

Commit 2a1bea3

Browse files
committed
fix phpstan errors
1 parent 0694b3e commit 2a1bea3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Parser.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
namespace PhpVersions\PHParse;
66

77
use DOMDocument;
8-
use DOMXpath;
9-
use PhpVersions\PHParse\Exceptions\NoPhpVersionsFileException;
8+
use DOMXPath;
109

1110
class Parser
1211
{
@@ -66,11 +65,11 @@ private function cleanValue($label) : string
6665
return trim($label);
6766
}
6867

69-
private function loadXPathDocument($html) : DOMXpath
68+
private function loadXPathDocument($html) : DOMXPath
7069
{
7170
$document = new DOMDocument;
7271
$document->loadHTML($html);
73-
return new DOMXpath($document);
72+
return new DOMXPath($document);
7473
}
7574

7675
private function isValidPhpInfoHtml() : bool

0 commit comments

Comments
 (0)