Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09e3cef

Browse files
Merge branch '4.3' into 4.4
* 4.3: [PhpUnitBridge] fix running simple-phpunit on Windows fixed phpdocs [Messenger] fix broken key normalization
2 parents b515107 + b78816d commit 09e3cef

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@
130130
}
131131
$prevRoot = getenv('COMPOSER_ROOT_VERSION');
132132
putenv("COMPOSER_ROOT_VERSION=$PHPUNIT_VERSION.99");
133+
$q = '\\' === DIRECTORY_SEPARATOR ? '"' : '';
133134
// --no-suggest is not in the list to keep compat with composer 1.0, which is shipped with Ubuntu 16.04LTS
134-
$exit = proc_close(proc_open("$COMPOSER install --no-dev --prefer-dist --no-progress --ansi", array(), $p, getcwd()));
135+
$exit = proc_close(proc_open("$q$COMPOSER install --no-dev --prefer-dist --no-progress --ansi$q", array(), $p, getcwd()));
135136
putenv('COMPOSER_ROOT_VERSION'.(false !== $prevRoot ? '='.$prevRoot : ''));
136137
if ($exit) {
137138
exit($exit);

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,7 @@ private function addMessengerSection(ArrayNodeDefinition $rootNode)
11301130
->end()
11311131
->children()
11321132
->arrayNode('routing')
1133+
->normalizeKeys(false)
11331134
->useAttributeAsKey('message_class')
11341135
->beforeNormalization()
11351136
->always()
@@ -1189,6 +1190,7 @@ function ($a) {
11891190
->end()
11901191
->end()
11911192
->arrayNode('transports')
1193+
->normalizeKeys(false)
11921194
->useAttributeAsKey('name')
11931195
->arrayPrototype()
11941196
->beforeNormalization()
@@ -1236,6 +1238,7 @@ function ($a) {
12361238
->scalarNode('default_bus')->defaultNull()->end()
12371239
->arrayNode('buses')
12381240
->defaultValue(['messenger.bus.default' => ['default_middleware' => true, 'middleware' => []]])
1241+
->normalizeKeys(false)
12391242
->useAttributeAsKey('name')
12401243
->arrayPrototype()
12411244
->addDefaultsIfNotSet()

0 commit comments

Comments
 (0)