| 1 | <?php |
||
| 15 | final class Client implements ClientInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var LoopInterface |
||
| 19 | */ |
||
| 20 | private $loop; |
||
| 21 | /** |
||
| 22 | * @var AsyncClient |
||
| 23 | */ |
||
| 24 | private $client; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param LoopInterface $loop |
||
| 28 | * @param AsyncClient $client |
||
| 29 | */ |
||
| 30 | private function __construct(LoopInterface $loop, AsyncClient $client) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $host |
||
| 38 | * @param array $options |
||
| 39 | * @return Client |
||
| 40 | */ |
||
| 41 | public static function create(string $host, array $options = []): self |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param string $input |
||
|
|
|||
| 54 | * @return OverviewInterface |
||
| 55 | */ |
||
| 56 | public function overview(): Overview |
||
| 60 | } |
||
| 61 |
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.