Skip to content

Commit 9885bb5

Browse files
committed
fix: drop @ error supression on DOM loadHTML
1 parent a0f4a83 commit 9885bb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GoogleTranslate.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ public function localizedLanguages(string $target): array
520520

521521
// Prepare to crawl DOM
522522
$dom = new \DOMDocument();
523-
@$dom->loadHTML($html);
523+
$dom->loadHTML($html);
524524
$xpath = new \DOMXPath($dom);
525525

526526
$nodes = $xpath->query('//div[@class="language-item"]/a');

0 commit comments

Comments
 (0)