Commit 74f5d64f authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] Appel de ContainerInterface::has() avec un int plus toléré, normal !

parent 5b2d9556
Pipeline #11190 passed with stage
in 30 seconds
......@@ -120,7 +120,7 @@ class MessageConfigNormalizer
// Si la spécification est le nom d'un service connu du service locator,
// la spécification devient le service lui-même.
if ($this->serviceLocator && $this->serviceLocator->has($specification)) {
if (is_string($specification) && $this->serviceLocator && $this->serviceLocator->has($specification)) {
return $this->serviceLocator->get($specification);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment