Skip to content

Commit

Permalink
Merge pull request #442 from m-lotze/fix_undefined_array_key_warning
Browse files Browse the repository at this point in the history
fix undefined array key warning
  • Loading branch information
toonvandenbos authored Mar 3, 2023
2 parents 8805c7d + 337c9e7 commit be93ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/HasFlexible.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function getMappedLayout($item, array $layoutMapping)
if (is_array($item)) {
$name = $item['layout'] ?? null;
$key = $item['key'] ?? null;
$attributes = (array) $item['attributes'] ?? [];
$attributes = (array) ($item['attributes'] ?? []);
} elseif (is_a($item, \stdClass::class)) {
$name = $item->layout ?? null;
$key = $item->key ?? null;
Expand Down

0 comments on commit be93ab1

Please sign in to comment.