1 | <?php |
||
19 | class RejectedPromise extends AbstractPromise |
||
20 | { |
||
21 | /** |
||
22 | * @var mixed |
||
23 | */ |
||
24 | protected $reason; |
||
25 | |||
26 | /** |
||
27 | * @param mixed $value |
||
|
|||
28 | */ |
||
29 | public function __construct($reason = null) |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onNotify = null) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function state() |
||
53 | |||
54 | /** |
||
55 | * @param callable $onRejected |
||
56 | * |
||
57 | * @return mixed |
||
58 | */ |
||
59 | private function rejectActual(callable $onRejected) |
||
69 | } |
||
70 |
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.