1 | <?php |
||
8 | class TranslationLoaderManager extends FileLoader |
||
9 | { |
||
10 | /** |
||
11 | * Load the messages for the given locale. |
||
12 | * |
||
13 | * @param string $locale |
||
14 | * @param string $group |
||
15 | * @param string $namespace |
||
16 | * |
||
17 | * @return array |
||
18 | */ |
||
19 | public function load($locale, $group, $namespace = null): array |
||
31 | |||
32 | protected function getTranslationsForTranslationLoaders( |
||
46 | } |
||
47 |
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.