1 | <?php |
||
7 | class Response extends \Ivory\HttpAdapter\Message\Response |
||
8 | { |
||
9 | private $contents; |
||
10 | |||
11 | public function getStatus() |
||
15 | |||
16 | public function getContentType() |
||
22 | |||
23 | /** |
||
24 | * @return Uri |
||
25 | */ |
||
26 | public function getUri() |
||
40 | |||
41 | /** |
||
42 | * @return Request |
||
43 | */ |
||
44 | public function getRequest() |
||
48 | |||
49 | public function getDuration() |
||
53 | |||
54 | public function getBody() |
||
68 | } |
||
69 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.