| 1 | <?php |
||
| 9 | class ClassMetadata extends MergeableClassMetadata |
||
| 10 | { |
||
| 11 | /** @var NamespaceNode[] */ |
||
| 12 | public $namespaces; |
||
| 13 | |||
| 14 | /** @var GraphMetadataInterface[] */ |
||
| 15 | public $nodes; |
||
| 16 | |||
| 17 | |||
| 18 | /** |
||
| 19 | * Constructor |
||
| 20 | * |
||
| 21 | * @param string $name |
||
| 22 | */ |
||
| 23 | public function __construct($name) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Add OpenGraph namespace |
||
| 33 | * |
||
| 34 | * @param NamespaceNode $namespace |
||
| 35 | * @return ClassMetadata |
||
| 36 | */ |
||
| 37 | public function addGraphNamespace(NamespaceNode $namespace) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Add OpenGraph metadata |
||
| 46 | * |
||
| 47 | * @param GraphNode $type |
||
|
|
|||
| 48 | * @param GraphMetadataInterface $data |
||
| 49 | * @return ClassMetadata |
||
| 50 | */ |
||
| 51 | public function addGraphMetadata(GraphNode $node, GraphMetadataInterface $data) |
||
| 60 | } |
||
| 61 |
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.