| 1 | <?php |
||
| 12 | class WireTransferPayment extends Payment |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var \DateTime |
||
| 16 | */ |
||
| 17 | private $expiryDate; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * CreditCardPayment constructor. |
||
| 21 | * |
||
| 22 | * @param Money $money |
||
| 23 | * @param array $issuers |
||
|
|
|||
| 24 | * @param string $purchaseId |
||
| 25 | * @param \DateTime $expiryDate |
||
| 26 | */ |
||
| 27 | 1 | public function __construct(Money $money, $purchaseId, \DateTime $expiryDate = null) |
|
| 33 | |||
| 34 | /** @inheritdoc */ |
||
| 35 | 1 | public function toArray() |
|
| 45 | } |
||
| 46 |
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.