1 | <?php |
||
7 | class Element extends \ArrayObject |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $idColumn = 'name'; |
||
13 | |||
14 | /** |
||
15 | * @param string|array|\Guzzle\Http\Message\Request $array |
||
|
|||
16 | */ |
||
17 | 144 | public function __construct($data) |
|
28 | |||
29 | /** |
||
30 | * @param string $idColumn |
||
31 | * |
||
32 | * @return \Acquia\Rest\Element |
||
33 | */ |
||
34 | 3 | public function setIdColumn($idColumn) |
|
39 | |||
40 | /** |
||
41 | * @return string|int |
||
42 | */ |
||
43 | 3 | public function getIdColumn() |
|
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | 132 | public function __toString() |
|
55 | } |
||
56 |
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.