PhpStorm
 
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

Code Inspection: Parameters number mismatch declaration

Last modified: 16 May 2022

Reports the function/method calls that take more parameters than specified in their declaration.

In the following example, the sum() function declaration uses two parameters, but the function call is provided with three parameters. Though this will not produce an error, it indicates a programming mistake.