Re: Two Issues regarding Named Parameters; want to understand the technicality
| From: | Kamil Tekiela | Date: | Thu, 09 Mar 2023 00:47:17 +0000 |
| Subject: | Re: Two Issues regarding Named Parameters; want to understand the technicality | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-119674@lists.php.net to get a copy of this message | ||
Hi Hamza,
If you encounter a bug, please create a GitHub issue with reproducible
steps. Your description of a program crashing is not actionable, as we
cannot reproduce this error.
Regarding your second point, how do you want this to work? $names is just a
collection of string parameters. It's not a single parameter so you cannot
refer to it by name. When you use named parameters with variadic
parameters, then the names you specified will be used as array keys. So no
error there, and no warning should be raised. But I don't know what you had
in mind of how this is supposed to work.
Regards,
Kamil