php/doc-en
Reflection calls with ...Args should support associative arrays for PHP 8
Aberta
#3.355 aberto em 27 de abr. de 2024
Extension: reflectiongood first issue
Métricas do repositório
- Stars
- (596 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
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 and simplifying managements of arguments array.