1 | <?php |
||
9 | abstract class StallableJobManager extends PriorityJobManager |
||
10 | { |
||
11 | protected $defaultMaxStalls; |
||
12 | |||
13 | abstract protected function stallableSave(StallableJob $job); |
||
14 | |||
15 | protected function prioritySave(Job $job) |
||
29 | |||
30 | /** |
||
31 | * @param StallableJob $job |
||
32 | * @param $retry true if retry |
||
33 | * |
||
34 | * @return bool true if retry |
||
35 | */ |
||
36 | abstract protected function stallableSaveHistory(StallableJob $job, $retry); |
||
37 | |||
38 | /** |
||
39 | * @return bool true if retry |
||
40 | * |
||
41 | * @param Job $job |
||
42 | */ |
||
43 | protected function retryableSaveHistory(RetryableJob $job, $retry) |
||
59 | |||
60 | /** |
||
61 | * @param StallableJob $job |
||
62 | * |
||
63 | * @return bool false if |
||
64 | */ |
||
65 | private function updateJobStalled(StallableJob $job) |
||
69 | |||
70 | protected function setStallableJobDefaults(StallableJob $job) |
||
76 | |||
77 | /** |
||
78 | * @return int|null |
||
79 | */ |
||
80 | public function getDefaultMaxStalls() |
||
84 | |||
85 | /** |
||
86 | * @param int|null $defaultMaxStalled |
||
|
|||
87 | */ |
||
88 | public function setDefaultMaxStalls($defaultMaxStalls) |
||
92 | } |
||
93 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.