| 1 | <?php |
||
| 7 | class FailedToEnqueueStoredJobException extends Exception |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var int |
||
| 11 | */ |
||
| 12 | private $enqueuedMessagesCount; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $message |
||
|
|
|||
| 16 | * @param int $code |
||
| 17 | * @param int $enqueuedMessagesCount |
||
| 18 | * @param Throwable|null $previous |
||
| 19 | */ |
||
| 20 | 1 | public function __construct(int $enqueuedMessagesCount, Throwable $previous = null) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @return int |
||
| 28 | */ |
||
| 29 | public function enqueuedMessagesCount(): int |
||
| 33 | } |
||
| 34 |
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
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.