Deprecations for PHP 7.4, preparing named args

From: Date: Mon, 06 Aug 2018 13:02:34 +0000
Subject: Deprecations for PHP 7.4, preparing named args
Groups: php.internals 
Request: Send a blank email to internals+get-103046@lists.php.net to get a copy of this message
Hello, I was reading https://wiki.php.net/rfc/named_params again. Named args would be great for 8.x. Following https://wiki.php.net/rfc/deprecations_php_7_4, would it make sense to deprecate calling call_user_func_array with associative arrays, so that it can be made to work with named args in 8.0? Another option would be to deprecate call_user_func_array altogether and recommend using the splat operator instead. WDYT? The named params RFC also tells about "Signature validation allows changing parameter names", adding a requirement to keep the same parameter name in child classes. Should this requirement be added to 7.4 with a deprecation notice? Are there other things we should deprecate to make room for named args? Just throwing the ideas so we don't forget considering them, thanks for reading. Nicolas

« previous php.internals (#103046) next »