1 | <?php |
||
12 | class ParameterConverter |
||
13 | { |
||
14 | /** |
||
15 | * Replace the code string with the value of the entity attribute. |
||
16 | * |
||
17 | * @param string $string |
||
|
|||
18 | * @param BusinessProperty $businessProperty |
||
19 | * @param object $entity |
||
20 | * |
||
21 | * @throws \Exception |
||
22 | * |
||
23 | * @return string The updated string |
||
24 | */ |
||
25 | public function convertFromEntity($url, BusinessProperty $businessProperty, $entity) |
||
40 | |||
41 | /** |
||
42 | * Replace the code string with the value of the entity attribute. |
||
43 | * |
||
44 | * @param string $string |
||
45 | * @param string $entityProperty |
||
46 | * @param string $attributeValue |
||
47 | * |
||
48 | * @throws \Exception |
||
49 | * |
||
50 | * @return string The updated string |
||
51 | */ |
||
52 | public function convert($url, $entityProperty, $attributeValue) |
||
65 | } |
||
66 |
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.