Skip to content

Commit

Permalink
Fix a PHP-8 array access
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhj authored Apr 6, 2022
1 parent 285cdc8 commit 699e20d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Migration/ThemeMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private function persistManifest(string $themeName, array $manifest, string $man
}

// Table tl_theme
$themeId = $this->persistTheme($row['id'], $manifest['theme']['name'], $themeName, $manifestHash);
$themeId = $this->persistTheme($row['id'] ?? null, $manifest['theme']['name'], $themeName, $manifestHash);

// Table tl_layout
$layouts = $manifest['layouts'] ?? [];
Expand Down

1 comment on commit 699e20d

@Arachnos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Richard,
Have you planned to make a release of this patch soon ?

This prevents us from installing themes in our projects.

Thanks ;-)

Etienne

Please sign in to comment.