| 1 | <?php |
||
| 25 | class NetworkService |
||
| 26 | { |
||
| 27 | |||
| 28 | /** @var HttpClient */ |
||
| 29 | private $httpClient; |
||
| 30 | |||
| 31 | /** @var UrlBuilder */ |
||
| 32 | private $urlBuilder; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * NetworkService constructor. |
||
| 36 | * @param HttpClient $httpClient |
||
| 37 | * @param UrlBuilder $urlBuilder |
||
| 38 | */ |
||
| 39 | 6 | public function __construct(HttpClient $httpClient, UrlBuilder $urlBuilder) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @param int $week |
||
|
|
|||
| 47 | * @param int $year |
||
| 48 | * @param string $location |
||
| 49 | * @return Week |
||
| 50 | * @throws NetworkingException |
||
| 51 | */ |
||
| 52 | 6 | public function getWeekWithLocation(CalendarWeek $calendarWeek, string $location): Week |
|
| 65 | |||
| 66 | } |
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.