1 | <?php |
||
11 | class StatisticsSource extends RecordSource |
||
12 | { |
||
13 | const RECORD = Statistics::class; |
||
14 | |||
15 | /** |
||
16 | * @param \DateTimeInterface $start |
||
17 | * @param \DateTimeInterface $end |
||
18 | * @param array $events |
||
19 | * @return RecordSelector |
||
20 | */ |
||
21 | public function findExtract( |
||
36 | |||
37 | /** |
||
38 | * @param string $name |
||
39 | * @param \DateTimeInterface $datetime |
||
40 | * @return null|Statistics |
||
41 | */ |
||
42 | public function findByEventNameAndDatetime(string $name, \DateTimeInterface $datetime) |
||
49 | } |
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.