From e0daee67b818e747af2e7d522bf363f5d81225a9 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 11 Feb 2021 19:33:17 +0100 Subject: [PATCH] Backported a 2.x fix for modern PHP versions --- src/Configuration/DefaultConfigPass.php | 2 +- src/EasyAdminBundle.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Configuration/DefaultConfigPass.php b/src/Configuration/DefaultConfigPass.php index 915ecb27d8..022ded7d62 100644 --- a/src/Configuration/DefaultConfigPass.php +++ b/src/Configuration/DefaultConfigPass.php @@ -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'])); } diff --git a/src/EasyAdminBundle.php b/src/EasyAdminBundle.php index 23c138f1f1..f7d454b170 100644 --- a/src/EasyAdminBundle.php +++ b/src/EasyAdminBundle.php @@ -22,7 +22,7 @@ */ class EasyAdminBundle extends Bundle { - const VERSION = '1.17.24'; + const VERSION = '1.17.25'; public function build(ContainerBuilder $container) {