minor #38208 [Messenger] Minor fix of exception message formatting (wouterj)

This PR was merged into the 4.4 branch.

Discussion
----------

[Messenger] Minor fix of exception message formatting

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

See e.g. 2f27613557

Commits
-------

69187ac9ce Fixed exception message formatting
This commit is contained in:
Fabien Potencier 2020-09-16 12:58:28 +02:00
commit cae08a0279

View File

@ -1325,7 +1325,7 @@ class Configuration implements ConfigurationInterface
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('Invalid middleware at path "framework.messenger": a map with a single factory id as key and its arguments as value was expected, '.json_encode($middleware).' given.');
}
return [