| 1 | <?php |
||
| 5 | abstract class StallableJob extends \Dtc\QueueBundle\Model\RetryableJob |
||
| 6 | { |
||
| 7 | const STATUS_MAX_STALLS = 'max_stalls'; |
||
| 8 | const STATUS_STALLED = 'stalled'; |
||
| 9 | |||
| 10 | protected $maxStalls = 0; |
||
| 11 | protected $stalls = 0; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @return int|null |
||
| 15 | */ |
||
| 16 | 47 | public function getMaxStalls() |
|
| 20 | |||
| 21 | /** |
||
| 22 | * @param int|null $maxStalls |
||
| 23 | * |
||
| 24 | * @return StallableJob |
||
| 25 | */ |
||
| 26 | 47 | public function setMaxStalls($maxStalls) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return int |
||
| 35 | */ |
||
| 36 | 37 | public function getStalls() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param int $stalledCount |
||
|
|
|||
| 43 | * |
||
| 44 | * @return StallableJob |
||
| 45 | */ |
||
| 46 | 37 | public function setStalls($stalls) |
|
| 52 | } |
||
| 53 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.