| Conditions | 4 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | private function callAndRetry(callable $callable, RetryStrategy $strategy) |
||
| 16 | { |
||
| 17 | do { |
||
| 18 | try { |
||
| 19 | return @$callable(); |
||
| 20 | } catch (Exception $exception) { |
||
| 21 | if (!$strategy->shouldRetry( |
||
| 22 | $exception, |
||
| 23 | $callable, |
||
| 24 | $this->context() |
||
| 25 | )) { |
||
| 26 | // stop trying |
||
| 27 | throw $exception; |
||
| 28 | } |
||
| 29 | } |
||
| 30 | } while (true); |
||
| 31 | } |
||
| 32 | |||
| 38 |
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.