Skip to content

Commit bccd268

Browse files
committed
stop using null coalescing operator ( introduced in PHP 7 )
1 parent 3de8738 commit bccd268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Templates/Afnic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function postProcess(&$WhoisParser)
127127
}
128128

129129
if ($contactType !== 'owner') {
130-
$contactObject->organization = $filteredAddress[0] ?? null;
130+
$contactObject->organization = isset($filteredAddress[0]) ? $filteredAddress[0] : null;
131131
$contactObject->city = end($filteredAddress);
132132
unset($filteredAddress[0]);
133133
} else {

0 commit comments

Comments
 (0)