1 | <?php |
||
22 | class RetryCommand extends Command |
||
23 | { |
||
24 | /** |
||
25 | * @var JobQueue |
||
26 | */ |
||
27 | protected $queue; |
||
28 | |||
29 | /** |
||
30 | * @var MongoFailedJobProvider |
||
31 | */ |
||
32 | protected $failer; |
||
33 | |||
34 | /** |
||
35 | * RetryCommand constructor. |
||
36 | * |
||
37 | * @param JobQueue $queue |
||
38 | * @param MongoDriverInterface $mongoDriver |
||
|
|||
39 | */ |
||
40 | public function __construct(JobQueue $queue, MongoFailedJobProvider $failer) |
||
47 | |||
48 | /** |
||
49 | * Configure command |
||
50 | */ |
||
51 | protected function configure() |
||
57 | |||
58 | /** |
||
59 | * Execute command |
||
60 | * |
||
61 | * @param InputInterface $input |
||
62 | * @param OutputInterface $output |
||
63 | * |
||
64 | * @return int|null|void |
||
65 | */ |
||
66 | public function execute(InputInterface $input, OutputInterface $output) |
||
86 | |||
87 | /** |
||
88 | * Retry job |
||
89 | * |
||
90 | * @param Job $job |
||
91 | * |
||
92 | * @return bool |
||
93 | */ |
||
94 | protected function retryJob($job): bool |
||
107 | } |
||
108 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.