1 | <?php |
||
14 | abstract class Base |
||
15 | { |
||
16 | /** |
||
17 | * @var HttpClientInterface |
||
18 | */ |
||
19 | protected $client; |
||
20 | |||
21 | /** |
||
22 | * @var UrlFactory |
||
23 | */ |
||
24 | protected $factory; |
||
25 | |||
26 | /** |
||
27 | * @var HandlerInterface |
||
28 | */ |
||
29 | protected $handler; |
||
30 | |||
31 | /** |
||
32 | * @var \Marek\OpenWeatherMap\Denormalizer\DenormalizerInterface |
||
33 | */ |
||
34 | protected $denormalizer; |
||
35 | |||
36 | /** |
||
37 | * Base constructor. |
||
38 | * |
||
39 | * @param HttpClientInterface $client |
||
40 | * @param UrlFactory $factory |
||
41 | * @param HandlerInterface $handler |
||
42 | * @param \Marek\OpenWeatherMap\Denormalizer\DenormalizerInterface $hydrator |
||
|
|||
43 | */ |
||
44 | public function __construct(HttpClientInterface $client, UrlFactory $factory, HandlerInterface $handler, DenormalizerInterface $denormalizer) |
||
51 | |||
52 | /** |
||
53 | * @param string $url |
||
54 | * |
||
55 | * @throws APIException |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | protected function getResult(string $url): array |
||
71 | } |
||
72 |
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.