RemovedSplAutoloadRegisterThrowFalse: add support for named parameters by jrfnl · Pull Request #1391 · PHPCompatibility/PHPCompatibility

@jrfnl

1. Adjusted the way the correct parameter is retrieved to use the new PHPCSUtils 1.0.0-alpha4 `PassedParameters::getParameterFromStack()` 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 reference:
* `spl_autoload_register`: https://3v4l.org/47KmF

Includes adding/adjusting the unit tests to include tests using named parameters.

@jrfnl jrfnl mentioned this pull request

Oct 26, 2022

41 tasks

wimg

wimg approved these changes Oct 31, 2022

@wimg wimg deleted the feature/1239-removedsplautoload-support-named-params branch

October 31, 2022 15:35