1 | <?php |
||
8 | class StubRelatedDocumentExtension extends DataExtension implements TestOnly |
||
9 | { |
||
10 | /** |
||
11 | * For method {@link DMSDocument::getRelatedDocuments} |
||
12 | * |
||
13 | * @param ArrayList $relatedDocuments |
||
14 | * @return ArrayList |
||
15 | */ |
||
16 | public function updateRelatedDocuments($relatedDocuments) |
||
21 | |||
22 | /** |
||
23 | * For method {@link DMSDocumentSet::getDocuments} |
||
24 | * |
||
25 | * @param ArrayList $relatedDocuments |
||
|
|||
26 | * @return ArrayList |
||
27 | */ |
||
28 | public function updateDocuments($documents) |
||
33 | |||
34 | /** |
||
35 | * Return a dummy document for testing purposes |
||
36 | * |
||
37 | * @return DMSDocument |
||
38 | */ |
||
39 | protected function getFakeDocument() |
||
45 | } |
||
46 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.