php/doc-en
Reflection calls with ...Args should support associative arrays for PHP 8
開放
#3,355 建立於 2024年4月27日
Extension: reflectiongood first issue
倉庫指標
- 星標
- (596 顆星)
- PR 合併指標
- (PR 指標待抓取)
描述
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.