1 | <?php |
||
5 | class ArrayNode extends AbstractParentNode |
||
6 | { |
||
7 | /** |
||
8 | * @param AbstractNode $node |
||
9 | * @param bool $allowDefault |
||
10 | * |
||
11 | * @return $this |
||
12 | */ |
||
13 | 4 | public function add(AbstractNode $node, $allowDefault = false) |
|
22 | |||
23 | /** |
||
24 | * @return array |
||
25 | */ |
||
26 | 1 | public function getDefault() |
|
30 | |||
31 | /** |
||
32 | * @return \stdClass|null |
||
33 | */ |
||
34 | 4 | public function serialize() |
|
47 | |||
48 | /** |
||
49 | * @param array $serialized |
||
50 | * @param string $name |
||
|
|||
51 | * @param AbstractNode $child |
||
52 | */ |
||
53 | 3 | private function serializeChild(array &$serialized, $i, AbstractNode $child) |
|
61 | } |
||
62 |
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.