| 1 | <?php |
||
| 4 | class Address extends AddressAbstract implements AddressInterface, AddressProviderInterface |
||
| 5 | { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @inheritDoc |
||
| 9 | */ |
||
| 10 | 2 | public function getAddress() : ?AddressInterface |
|
| 14 | |||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $type|null |
||
|
|
|||
| 18 | * @return self Fluent interface |
||
| 19 | */ |
||
| 20 | 4 | public function setType(?string $type) : self |
|
| 25 | |||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $street1|null |
||
| 29 | * @return self Fluent interface |
||
| 30 | */ |
||
| 31 | 4 | public function setStreet1(?string $street1) : self |
|
| 36 | |||
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $street2|null |
||
| 40 | * @return self Fluent interface |
||
| 41 | */ |
||
| 42 | 4 | public function setStreet2(?string $street2) : self |
|
| 47 | |||
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $zip|null |
||
| 51 | * @return self Fluent interface |
||
| 52 | */ |
||
| 53 | 4 | public function setZip(?string $zip) : self |
|
| 58 | |||
| 59 | |||
| 60 | /** |
||
| 61 | * @param string $location|null |
||
| 62 | * @return self Fluent interface |
||
| 63 | */ |
||
| 64 | 4 | public function setLocation(?string $location) : self |
|
| 69 | |||
| 70 | |||
| 71 | /** |
||
| 72 | * @param string $country|null |
||
| 73 | * @return self Fluent interface |
||
| 74 | */ |
||
| 75 | 4 | public function setCountry(?string $country) : self |
|
| 80 | } |
||
| 81 |
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.