Skip to content

Commit

Permalink
Backported a 2.x fix for modern PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Feb 11, 2021
1 parent 0eeb085 commit e0daee6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Configuration/DefaultConfigPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private function processDefaultMenuItem(array $backendConfig)
{
$defaultMenuItem = $this->findDefaultMenuItem($backendConfig['design']['menu']);

if ('empty' === $defaultMenuItem['type']) {
if (is_array($defaultMenuItem) && 'empty' === $defaultMenuItem['type']) {
throw new \RuntimeException(sprintf('The "menu" configuration sets "%s" as the default item, which is not possible because its type is "empty" and it cannot redirect to a valid URL.', $defaultMenuItem['label']));
}

Expand Down
2 changes: 1 addition & 1 deletion src/EasyAdminBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/
class EasyAdminBundle extends Bundle
{
const VERSION = '1.17.24';
const VERSION = '1.17.25';

public function build(ContainerBuilder $container)
{
Expand Down

0 comments on commit e0daee6

Please sign in to comment.