From 0b27af0e0fb5a2a6f90da8b4646e63637a30b7df Mon Sep 17 00:00:00 2001 From: Manuel Dalla Lana Date: Fri, 29 Aug 2025 18:20:26 +0200 Subject: [PATCH] Resolve deprecation on Symfony 5.4 Method "Symfony\Contracts\Service\ServiceSubscriberInterface::getSubscribedServices()" might add "array" as a native return type declaration in the future. Do the same in implementation "Payum\Bundle\PayumBundle\Controller\PayumController" now to avoid errors or add an explicit @return annotation to suppress this message. --- Traits/ControllerTrait.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Traits/ControllerTrait.php b/Traits/ControllerTrait.php index 793c912..62675c3 100644 --- a/Traits/ControllerTrait.php +++ b/Traits/ControllerTrait.php @@ -20,6 +20,9 @@ public static function getSubscribedServices(): array } else { trait ControllerTrait { + /** + * @return array + */ public static function getSubscribedServices() { return array_merge(parent::getSubscribedServices(), [