| 1 | <?php |
||
| 20 | final class HereAddress extends Address |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var string|null |
||
| 24 | */ |
||
| 25 | private $locationId; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string|null |
||
| 29 | */ |
||
| 30 | private $locationType; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var string|null |
||
| 34 | */ |
||
| 35 | private $locationName; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return null|string |
||
| 39 | */ |
||
| 40 | public function getLocationId() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param null|string $LocationId |
||
|
|
|||
| 47 | * |
||
| 48 | * @return HereAddress |
||
| 49 | */ |
||
| 50 | public function withLocationId(string $locationId = null): self |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return null|string |
||
| 60 | */ |
||
| 61 | public function getLocationType() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @param null|string $LocationType |
||
| 68 | * |
||
| 69 | * @return HereAddress |
||
| 70 | */ |
||
| 71 | public function withLocationType(string $locationType = null): self |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return null|string |
||
| 81 | */ |
||
| 82 | public function getLocationName() |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @param null|string $LocationName |
||
| 89 | * |
||
| 90 | * @return HereAddress |
||
| 91 | */ |
||
| 92 | public function withLocationName(string $locationName = null): self |
||
| 99 | } |
||
| 100 |
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.