Skip to content

Commit 969f01d

Browse files
authored
Enforced type of suffixes to array
1 parent 73671bc commit 969f01d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public function getDomain($first_level = false)
223223
$tld = $host[1].'.'.$host[0];
224224
$suffixes = self::getSuffixes();
225225

226-
if (in_array($tld, $suffixes, true)) {
226+
if (in_array($tld, (array)$suffixes, true)) {
227227
return $first_level ? $host[2].'.'.$tld : $host[2];
228228
}
229229

0 commit comments

Comments
 (0)