Code
- functions.php ➔ write()
- functions.php ➔ input()
- functions.php ➔ output()
- functions.php ➔ host()
- functions.php ➔ getHost()
- functions.php ➔ currentHost()
- functions.php ➔ localhost()
- functions.php ➔ inventory()
- functions.php ➔ desc()
- functions.php ➔ task()
- functions.php ➔ before()
- functions.php ➔ after()
- functions.php ➔ fail()
- functions.php ➔ option()
- functions.php ➔ cd()
- functions.php ➔ within()
- functions.php ➔ run()
- functions.php ➔ runLocally()
- functions.php ➔ test()
- functions.php ➔ testLocally()
- functions.php ➔ on()
- functions.php ➔ invoke()
- functions.php ➔ upload()
- functions.php ➔ download()
- functions.php ➔ info()
- functions.php ➔ warning()
- functions.php ➔ writeln()
- functions.php ➔ set()
- functions.php ➔ add()
- functions.php ➔ get()
- functions.php ➔ has()
- functions.php ➔ ask()
- functions.php ➔ askChoice()
- functions.php ➔ askConfirmation()
- functions.php ➔ askHiddenResponse()
- functions.php ➔ commandExist()
- functions.php ➔ commandSupportsOption()
- functions.php ➔ parse()
- functions.php ➔ locateBinaryPath()
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.