Skip to content

Commit b5de474

Browse files
committed
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. ```
1 parent 22fcd03 commit b5de474

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/enqueue-bundle/Profiler/MessageQueueCollector.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
use Symfony\Component\HttpFoundation\Request;
66
use Symfony\Component\HttpFoundation\Response;
7-
use Throwable;
87

98
class MessageQueueCollector extends AbstractMessageQueueCollector
109
{
11-
public function collect(Request $request, Response $response, Throwable $exception = null)
10+
public function collect(Request $request, Response $response, \Throwable $exception = null): void
1211
{
1312
$this->collectInternal($request, $response);
1413
}

0 commit comments

Comments
 (0)