mirror of
https://github.com/php/php-src.git
synced 2026-04-14 11:32:11 +02:00
Currently, argument unpacking and named arguments cannot be mixed at all. This relaxes the restriction to allow foo(...$args, named: $arg). The variant foo(named: $arg, ...$args) is still forbidden, because we can't ensure that positional parameters come before named parameters in that case (without more intrusive changes). Effectively this just enforces a required style, as the order of unpack and named args doesn't matter for the cases where both could be well-defined. ML discussion: https://externals.io/message/114589 Closes GH-7009.