Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | c2387f117808 |
children |
line wrap: on
line diff
--- a/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php Thu Feb 28 13:21:36 2019 +0000 @@ -90,8 +90,8 @@ */ 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);