From d6e860752ea837bc1f10418b3c5c733786b2692c Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Thu, 17 Aug 2023 09:04:31 +0200 Subject: [PATCH] Add `void` return type in MessageQueueCollector Fixes: ``` Method "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface::collect()" might add "void" as a native return type declaration in the future. Do the same in implementation "Enqueue\Bundle\Profiler\MessageQueueCollector" now to avoid errors or add an explicit @return annotation to suppress this message. ``` --- pkg/enqueue-bundle/Profiler/MessageQueueCollector.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/enqueue-bundle/Profiler/MessageQueueCollector.php b/pkg/enqueue-bundle/Profiler/MessageQueueCollector.php index 7fc6699c5..c1f7b6a46 100644 --- a/pkg/enqueue-bundle/Profiler/MessageQueueCollector.php +++ b/pkg/enqueue-bundle/Profiler/MessageQueueCollector.php @@ -8,6 +8,9 @@ class MessageQueueCollector extends AbstractMessageQueueCollector { + /** + * @return void + */ public function collect(Request $request, Response $response, Throwable $exception = null) { $this->collectInternal($request, $response);