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
9
9
{
10
10
private $ info ;
11
11
private $ url ;
12
- private static $ public_suffix_list = [] ;
12
+ private static $ public_suffix_list ;
13
13
14
14
/**
15
15
* Create a new Url instance.
@@ -619,15 +619,9 @@ private function setPath($path)
619
619
620
620
private static function getSuffixes ()
621
621
{
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
+ }
631
625
return self ::$ public_suffix_list ;
632
626
}
633
627
You can’t perform that action at this time.
0 commit comments