| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | abstract class AbstractExecuteReceiverStrategy implements ExecuteReceiverStrategyInterface |
||
| 9 | { |
||
| 10 | /** @var ReceiverExecutorInterface */ |
||
| 11 | private $receiverExecutor; |
||
| 12 | |||
| 13 | public function setReceiverExecutor(ReceiverExecutorInterface $receiverExecutor) |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param AMQPMessage[] $meesages |
||
| 20 | */ |
||
| 21 | protected function execute(array $messages): array |
||
| 24 | } |
||
| 25 | } |
This check compares calls to functions or methods with their respective definitions. If the call has less arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.