Re: [PHP-DEV] Two Issues regarding Named Parameters; want to understand the technicality

2023-03-09 Thread Larry Garfield
On Wed, Mar 8, 2023, at 6:26 PM, Hamza Ahmad wrote: > In my second project, I did not receive a warning when I passed the > wrong parameters. To give you an example, I have two constructors: > 1. ` public function __construct(int $date, int$month, int $year) ` > 2. ` public function

Re: [PHP-DEV] Two Issues regarding Named Parameters; want to understand the technicality

2023-03-08 Thread Hamza Ahmad
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 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 >

Re: [PHP-DEV] Two Issues regarding Named Parameters; want to understand the technicality

2023-03-08 Thread Kamil Tekiela
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

[PHP-DEV] Two Issues regarding Named Parameters; want to understand the technicality

2023-03-08 Thread Hamza Ahmad
Hello Internals, I am writing to discuss an issue that I have encountered while using named parameters in two of my projects. Although named parameters have made it easier to call functions without passing extra parameters, I have found that relying solely on them can cause problems. In my first