Re: Ensure correct signatures for PHP magic methods
| From: | Gabriel Caruso | Date: | Mon, 06 Jan 2020 09:23:35 +0000 |
| Subject: | Re: Ensure correct signatures for PHP magic methods | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108003@lists.php.net to get a copy of this message | ||
On Mon, 6 Jan 2020 at 10:05, Nikita Popov <nikita.ppv@gmail.com> wrote:
> On Sun, Jan 5, 2020 at 6:44 PM Gabriel Caruso <carusogabriel34@gmail.com>
> wrote:
>
>> Hello Internals,
>>
>> I have a PR proposing to start checking the signatures for PHP magic
>> methods in the next major version of PHP:
>> https://github.com/php/php-src/pull/4177. The idea for this
>> PR came from
>> https://bugs.php.net/bug.php?id=69718.
>>
>> I'd like to hear your opinion before putting more effort into this :)
>>
>> Best regards.
>>
>
> To be clear, the suggestion here is to verify that no *wrong* types are
> specified -- but not specifying a type at all remains legal, right? If so,
> sounds reasonable to me.
>
Right! If no type is provided no problem but, if provided, then we're going
to check.
Important: *this has nothing to do* with
strict_types flag enabled or not.
>
> Nikita
>
Best regards,