1 | <?php |
||
9 | class MediaInfoOutputParser extends AbstractXmlOutputParser |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | private $parsedOutput; |
||
15 | |||
16 | /** |
||
17 | * @param string $output |
||
18 | */ |
||
19 | 3 | public function parse($output) |
|
23 | |||
24 | /** |
||
25 | * @param bool $ignoreUnknownTrackTypes Optional parameter used to skip unknown track types by passing true. The |
||
26 | * default behavior (false) is throw an exception on unknown track types. |
||
27 | * |
||
28 | * @return MediaInfoContainer |
||
29 | */ |
||
30 | 4 | public function getMediaInfoContainer($ignoreUnknownTrackTypes = false) |
|
62 | } |
||
63 |
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.