Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/dependency-injection/LazyProxy/ProxyHelper.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 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
37 $type = method_exists($r, 'getReturnType') ? $r->getReturnType() : null; | 37 $type = method_exists($r, 'getReturnType') ? $r->getReturnType() : null; |
38 } | 38 } |
39 if (!$type) { | 39 if (!$type) { |
40 return; | 40 return; |
41 } | 41 } |
42 if (!is_string($type)) { | 42 if (!\is_string($type)) { |
43 $name = $type instanceof \ReflectionNamedType ? $type->getName() : $type->__toString(); | 43 $name = $type instanceof \ReflectionNamedType ? $type->getName() : $type->__toString(); |
44 | 44 |
45 if ($type->isBuiltin()) { | 45 if ($type->isBuiltin()) { |
46 return $noBuiltin ? null : $name; | 46 return $noBuiltin ? null : $name; |
47 } | 47 } |