Skip to content

Commit 91a70fc

Browse files
committed
If framework.messenger.buses.X.middleware is empty, it will be null
1 parent 5ae0e89 commit 91a70fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ function ($a) {
10901090
->end()
10911091
->arrayNode('middleware')
10921092
->beforeNormalization()
1093-
->ifTrue(function ($v) { return \is_string($v) || !\is_int(key($v)); })
1093+
->ifTrue(function ($v) { return \is_string($v) || (\is_array($v) && !\is_int(key($v))); })
10941094
->then(function ($v) { return array($v); })
10951095
->end()
10961096
->defaultValue(array())

0 commit comments

Comments
 (0)