Open Zekfad opened 5 months ago
I'm not sure I understand, this works: https://3v4l.org/Wtas7
Yes, it seems like I was hitting different user-land bug.
It would be nice to mention thank in documentation, because there's and old note on ReflectionClass::newInstanceArgs
claiming otherwise.
I'll be moving this issue to the docs repo then.
It would be nice to mention thank in documentation, because there's and old note on ReflectionClass::newInstanceArgs claiming otherwise.
Indeed, and it's the top note even... I'll remove it.
Description
With PHP 8 we have named arguments and support for arbitrary arguments order. Making
ReflectionClass::newInstanceArgs
andReflectionMethod::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.