Skip to content

Commit f0f9be9

Browse files
committed
fix #234 add default values, avoid BC
1 parent d13344c commit f0f9be9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Domain.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ public static function __set_state(array $properties): self
106106
return new self(
107107
$properties['domain'],
108108
$properties['publicSuffix'],
109-
$properties['asciiIDNAOption'],
110-
$properties['unicodeIDNAOption']
109+
$properties['asciiIDNAOption'] ?? IDNA_DEFAULT,
110+
$properties['unicodeIDNAOption'] ?? IDNA_DEFAULT
111111
);
112112
}
113113

0 commit comments

Comments
 (0)