mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-04 16:08:44 +02:00
N°8910 - Upgrade Symfony packages
This commit is contained in:
@@ -53,7 +53,7 @@ trait ServiceSubscriberTrait
|
||||
throw new \LogicException(\sprintf('Cannot use "%s" on methods without a return type in "%s::%s()".', SubscribedService::class, $method->name, self::class));
|
||||
}
|
||||
|
||||
/* @var SubscribedService $attribute */
|
||||
/** @var SubscribedService $attribute */
|
||||
$attribute = $attribute->newInstance();
|
||||
$attribute->key ??= self::class.'::'.$method->name;
|
||||
$attribute->type ??= $returnType instanceof \ReflectionNamedType ? $returnType->getName() : (string) $returnType;
|
||||
|
||||
Reference in New Issue
Block a user