Skip to content

Commit 687f825

Browse files
authored
Use PHP7 syntax (#660)
1 parent c0faf01 commit 687f825

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Model/Address.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ public static function createFromArray(array $data)
236236
$adminLevels = [];
237237
foreach ($data['adminLevels'] as $adminLevel) {
238238
$adminLevels[] = new AdminLevel(
239-
isset($adminLevel['level']) ? $adminLevel : null,
240-
isset($adminLevel['name']) ? $adminLevel : null,
241-
isset($adminLevel['code']) ? $adminLevel : null
239+
$adminLevel['level'] ?? null,
240+
$adminLevel['name'] ?? null,
241+
$adminLevel['code'] ?? null
242242
);
243243
}
244244

0 commit comments

Comments
 (0)