File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class Url
99{
1010 private $ info ;
1111 private $ url ;
12- private static $ public_suffix_list = [] ;
12+ private static $ public_suffix_list ;
1313
1414 /**
1515 * Create a new Url instance.
@@ -619,15 +619,9 @@ private function setPath($path)
619619
620620 private static function getSuffixes ()
621621 {
622-
623- if (count (self ::$ public_suffix_list ) === 0 ) {
624- $ suffixes = @include __DIR__ .'/../resources/public_suffix_list.php ' ;
625-
626- if (is_array ($ suffixes )) {
627- self ::$ public_suffix_list = $ suffixes ;
628- }
629- }
630-
622+ if (self ::$ public_suffix_list === null ) {
623+ self ::$ public_suffix_list = (array ) include __DIR__ .'/../resources/public_suffix_list.php ' ;
624+ }
631625 return self ::$ public_suffix_list ;
632626 }
633627
You can’t perform that action at this time.
0 commit comments