[php-src] Issue #14063: Reflection calls with ...Args should support associative arrays for PHP 8
| From: | Zekfad | Date: | Sat, 27 Apr 2024 18:27:01 +0000 |
| Subject: | [php-src] Issue #14063: Reflection calls with ...Args should support associative arrays for PHP 8 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246828@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/14063
Author: Zekfad
### Description
With PHP 8 we have named arguments and support for arbitrary arguments order.
Making
ReflectionClass::newInstanceArgs and ReflectionMethod::invokeArgs
support associative arrays will mirror that functionality from reflection.
Use case is for skipping retrieval of optional parameters (there are issues present, see #14062) and
simplifying managements of arguments array.