Skip to content

Commit e0daee6

Browse files
committed
Backported a 2.x fix for modern PHP versions
1 parent 0eeb085 commit e0daee6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Configuration/DefaultConfigPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private function processDefaultMenuItem(array $backendConfig)
5555
{
5656
$defaultMenuItem = $this->findDefaultMenuItem($backendConfig['design']['menu']);
5757

58-
if ('empty' === $defaultMenuItem['type']) {
58+
if (is_array($defaultMenuItem) && 'empty' === $defaultMenuItem['type']) {
5959
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']));
6060
}
6161

src/EasyAdminBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
class EasyAdminBundle extends Bundle
2424
{
25-
const VERSION = '1.17.24';
25+
const VERSION = '1.17.25';
2626

2727
public function build(ContainerBuilder $container)
2828
{

0 commit comments

Comments
 (0)