Dep: update

주로 PHAN
This commit is contained in:
Hide_D committed 2021-08-06 22:39:09 +09:00
1 parent 5310c2e7f6
commit b306601c72
1098 files changed
+92137 -33228

No files matched your search

@@ -24,6 +24,9 @@ trait ServiceSubscriberTrait
/** @var ContainerInterface */
protected $container;
/**
* {@inheritdoc}
*/
public static function getSubscribedServices(): array
{
static $services;
@@ -40,7 +43,7 @@ trait ServiceSubscriberTrait
}
if (self::class === $method->getDeclaringClass()->name && ($returnType = $method->getReturnType()) && !$returnType->isBuiltin()) {
$services[self::class.'::'.$method->name] = '?'.$returnType->getName();
$services[self::class.'::'.$method->name] = '?'.($returnType instanceof \ReflectionNamedType ? $returnType->getName() : $returnType);
}
}