*/
protected function getConstructor(Definition $definition, $required)
{
- if (is_string($factory = $definition->getFactory())) {
- if (!function_exists($factory)) {
+ if (\is_string($factory = $definition->getFactory())) {
+ if (!\function_exists($factory)) {
throw new RuntimeException(sprintf('Invalid service "%s": function "%s" does not exist.', $this->currentId, $factory));
}
$r = new \ReflectionFunction($factory);