Skip to content

Commit 42eb071

Browse files
authored
Add void return type to collect() method
Needed for Symfony 6.3. ``` 1x: Method "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface::collect()" might add "void" as a native return type declaration in the future. Do the same in implementation "Http\HttplugBundle\Collector\Collector" now to avoid errors or add an explicit @return annotation to suppress this message. ```
1 parent cace470 commit 42eb071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Collector/Collector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function getTotalDuration()
195195
/**
196196
* {@inheritdoc}
197197
*/
198-
public function collect(Request $request, Response $response, $exception = null)
198+
public function collect(Request $request, Response $response, $exception = null): void
199199
{
200200
// We do not need to collect any data from the Symfony Request and Response
201201
}

0 commit comments

Comments
 (0)