1 | <?php |
||
19 | class DetailsHelper { |
||
20 | private $extractor; |
||
21 | private $logger; |
||
22 | |||
23 | public function __construct( |
||
29 | |||
30 | /** |
||
31 | * @param string $fileId |
||
32 | * @param string $userId |
||
|
|||
33 | * @param Folder $userFolder |
||
34 | * $return array|null |
||
35 | */ |
||
36 | public function getDetails($fileId, $userFolder) { |
||
65 | |||
66 | // In the 'comments' field from the extractor, the value for each key is a 1-element |
||
67 | // array containing the actual tag value. Remove these intermediate arrays. |
||
68 | private static function flattenComments($array) { |
||
74 | |||
75 | } |
||
76 |
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.