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.

贡献者指南