We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0faf01 commit 687f825Copy full SHA for 687f825
Model/Address.php
@@ -236,9 +236,9 @@ public static function createFromArray(array $data)
236
$adminLevels = [];
237
foreach ($data['adminLevels'] as $adminLevel) {
238
$adminLevels[] = new AdminLevel(
239
- isset($adminLevel['level']) ? $adminLevel : null,
240
- isset($adminLevel['name']) ? $adminLevel : null,
241
- isset($adminLevel['code']) ? $adminLevel : null
+ $adminLevel['level'] ?? null,
+ $adminLevel['name'] ?? null,
+ $adminLevel['code'] ?? null
242
);
243
}
244
0 commit comments