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 committed Aug 17, 2023
1 parent 67af904 commit 5364c38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/enqueue-bundle/Profiler/MessageQueueCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Throwable;

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 5364c38

Please sign in to comment.