Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:
curl https://fabbot.io/patch/symfony/symfony/38204/afdd805b1cdc4a5d32b751e2f2c72af6ed50a13a/exception_messages.diff | patch -p0
diff -ru src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
--- src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php 2020-09-17 05:37:00.239164317 +0000
+++ src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php 2020-09-17 05:37:12.017917801 +0000
@@ -1319,7 +1319,7 @@
return $middleware;
}
if (1 < \count($middleware)) {
- throw new \InvalidArgumentException(sprintf('Invalid middleware at path "framework.messenger": a map with a single factory id as key and its arguments as value was expected, %s given.', json_encode($middleware)));
+ throw new \InvalidArgumentException(sprintf('Invalid middleware at path "framework.messenger": a map with a single factory id as key and its arguments as value was expected, "%s" given.', json_encode($middleware)));
}
return [