Skip to content

Commit

Permalink
fix: drop @ error supression on DOM loadHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
a-drew committed Aug 3, 2024
1 parent a0f4a83 commit 9885bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GoogleTranslate.php
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ public function localizedLanguages(string $target): array

// Prepare to crawl DOM
$dom = new \DOMDocument();
@$dom->loadHTML($html);
$dom->loadHTML($html);
$xpath = new \DOMXPath($dom);

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

0 comments on commit 9885bb5

Please sign in to comment.