@@ -41,7 +41,7 @@ |
||
41 | 41 | { |
42 | 42 | $container = new ContainerBuilder(); |
43 | 43 | $definition = new Definition(\stdClass::class); |
44 | - $definition->setFactory([self::class, 'exceptionFactory']); |
|
44 | + $definition->setFactory([ self::class, 'exceptionFactory' ]); |
|
45 | 45 | $container->setDefinition('mydef', $definition); |
46 | 46 | $container->compile(); |
47 | 47 | $containerAdapter = new SymfonyContainerAdapter($container); |
@@ -138,7 +138,7 @@ |
||
138 | 138 | $factoryDefinition->setPublic(true); |
139 | 139 | $containerDefinition = new Reference('interop_service_provider_acclimated_container'); |
140 | 140 | |
141 | - if ((is_array($callable) && is_string($callable[0])) || is_string($callable)) { |
|
141 | + if ((is_array($callable) && is_string($callable[ 0 ])) || is_string($callable)) { |
|
142 | 142 | $factoryDefinition->setFactory($callable); |
143 | 143 | $factoryDefinition->addArgument($containerDefinition); |
144 | 144 | } else { |