From 9885bb5588e77c13f80cd801843fa59b3f8fed8e Mon Sep 17 00:00:00 2001 From: Andrew H Date: Sat, 3 Aug 2024 12:51:51 -0400 Subject: [PATCH] fix: drop @ error supression on DOM loadHTML --- src/GoogleTranslate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GoogleTranslate.php b/src/GoogleTranslate.php index 0967a2b..3dc1e92 100644 --- a/src/GoogleTranslate.php +++ b/src/GoogleTranslate.php @@ -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');