Re: [PHP-DEV] Suggest similar names for undefined function/method/class errors
Jorg Sowa <[email protected]>
| Newsgroups | gmane.comp.php.devel |
|---|---|
| Message-ID | <CAPTD5yFfdKDPME3LFExvwJYyY26f2fPO-6GoZhE4KeOEOeKGvg@mail.gmail.com> |
Thank you both for the opinions. I think it will be reasonable to not rush for PHP 8.6. I found few nuances that I would like to consider properly. I will finish it after feature freeze. > I do agree here there's a bit too much punctuation. Perhaps something > similar to what Python does (according to the posted link)? > Call to undefined function defined(). Did you mean: define? I have hard time choosing best option. Python and Ruby don't have file and line number at the end of error message and question mark looks good in such setup. I don't want change the error structure to put the suggestion part at the end of error message. But otherwise in all cases I think of, it looks ugly. Kind regards, Jorg