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 Oct 22, 2023
1 parent 22fcd03 commit d6e8607
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/enqueue-bundle/Profiler/MessageQueueCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

class MessageQueueCollector extends AbstractMessageQueueCollector
{
/**
* @return void
*/
public function collect(Request $request, Response $response, Throwable $exception = null)

Check failure on line 14 in pkg/enqueue-bundle/Profiler/MessageQueueCollector.php

View workflow job for this annotation

GitHub Actions / Static analysis

Parameter $request of method Enqueue\Bundle\Profiler\MessageQueueCollector::collect() has invalid typehint type Symfony\Component\HttpFoundation\Request.
{
$this->collectInternal($request, $response);
Expand Down

0 comments on commit d6e8607

Please sign in to comment.