php/doc-en

Reflection calls with ...Args should support associative arrays for PHP 8

開放

#3,355 建立於 2024年4月27日

 (3 則留言) (0 個反應) (0 位負責人)XML (882 個分叉)auto 404
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.

貢獻者指南