Skip to content
  • jrfnl's avatar
    ForbiddenNames: add support for named parameters · 8ceb40a4
    jrfnl authored
    1. Add support for function calls using named parameters by passing the parameter name to the PHPCSUtils 1.0.0-alpha4 `PassedParameters::getParameter()` method.
    2. Verified the parameter name used is in line with the name as per the PHP 8.0 release.
        PHP itself renamed a lot of parameters in PHP 8.0. As named parameters did not exist before PHP 8.0, the parameter name as per PHP 8.0 (or above) is the only relevant name.
    
    Name verification references:
    * `define`: https://3v4l.org/JLsqC
    
    Includes adding tests to the "specific situations" test case files using named parameters.
    8ceb40a4