php/doc-en
Reflection calls with ...Args should support associative arrays for PHP 8
Offen
#3.355 geöffnet am 27.04.2024
Extension: reflectiongood first issue
Repository-Metriken
- Stars
- (596 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 99T 23h) (90 gemergte PRs in 30 T)
Beschreibung
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.