1 | <?php |
||
27 | class Card extends AbstractMessage |
||
28 | { |
||
29 | /** |
||
30 | * Message type. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $type = 'wxcard'; |
||
35 | |||
36 | /** |
||
37 | * Properties. |
||
38 | * |
||
39 | * @var array |
||
40 | */ |
||
41 | protected $properties = ['card_id']; |
||
42 | |||
43 | /** |
||
44 | * Material constructor. |
||
45 | * |
||
46 | * @param string $mediaId |
||
|
|||
47 | * @param string $type |
||
48 | */ |
||
49 | public function __construct($cardId) |
||
53 | } |
||
54 |
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.