Skip to content

Commit 85a6bec

Browse files
authored
Merge pull request #1295 from VincentLanglet/patch-1
Add explicit @return to solve Symfony deprecation
2 parents 8c7edb2 + aadd3d9 commit 85a6bec

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pkg/enqueue/Client/DelegateProcessor.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,21 @@ class DelegateProcessor implements Processor
1414
*/
1515
private $registry;
1616

17-
/**
18-
* @param ProcessorRegistryInterface $registry
19-
*/
2017
public function __construct(ProcessorRegistryInterface $registry)
2118
{
2219
$this->registry = $registry;
2320
}
2421

2522
/**
2623
* {@inheritdoc}
24+
*
25+
* @return string|object
2726
*/
2827
public function process(InteropMessage $message, Context $context)
2928
{
3029
$processorName = $message->getProperty(Config::PROCESSOR);
3130
if (false == $processorName) {
32-
throw new \LogicException(sprintf(
33-
'Got message without required parameter: "%s"',
34-
Config::PROCESSOR
35-
));
31+
throw new \LogicException(sprintf('Got message without required parameter: "%s"', Config::PROCESSOR));
3632
}
3733

3834
return $this->registry->get($processorName)->process($message, $context);

0 commit comments

Comments
 (0)