php/doc-en

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

オープン

#3,355 opened on 2024/04/27

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)XML (882 件のフォーク)auto 404
Extension: reflectiongood first issue

Repository metrics

Stars
 (596 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド