Fixed exception message formatting

This commit is contained in:
Wouter de Jong 2020-09-16 12:14:09 +02:00
parent 1202404671
commit 69187ac9ce

View File

@ -1325,7 +1325,7 @@ class Configuration implements ConfigurationInterface
return $middleware; return $middleware;
} }
if (1 < \count($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 [ return [