Re: Two Issues regarding Named Parameters; want to understand the technicality

From: Date: Thu, 09 Mar 2023 02:53:15 +0000
Subject: Re: Two Issues regarding Named Parameters; want to understand the technicality
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-119675@lists.php.net to get a copy of this message
Hi Kamil, Thank you for your response. I shall sure create an issue and will update in this threat. On 3/9/23, Kamil Tekiela <tekiela246@gmail.com> wrote: > 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 >

« previous php.internals (#119675) next »