We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
framework.messenger.buses.X.middleware
null
1 parent 5ae0e89 commit 91a70fcCopy full SHA for 91a70fc
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
@@ -1090,7 +1090,7 @@ function ($a) {
1090
->end()
1091
->arrayNode('middleware')
1092
->beforeNormalization()
1093
- ->ifTrue(function ($v) { return \is_string($v) || !\is_int(key($v)); })
+ ->ifTrue(function ($v) { return \is_string($v) || (\is_array($v) && !\is_int(key($v))); })
1094
->then(function ($v) { return array($v); })
1095
1096
->defaultValue(array())
0 commit comments