Skip to content

Commit

Permalink
Add void return type in MessageQueueCollector
Browse files Browse the repository at this point in the history
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.
```
  • Loading branch information
ruudk authored Aug 17, 2023
1 parent 67af904 commit 9bc089e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/enqueue-bundle/Profiler/MessageQueueCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class MessageQueueCollector extends AbstractMessageQueueCollector
{
public function collect(Request $request, Response $response, Throwable $exception = null)
public function collect(Request $request, Response $response, Throwable $exception = null): void
{
$this->collectInternal($request, $response);
}
Expand Down

0 comments on commit 9bc089e

Please sign in to comment.