Re: [PHP-DEV] Suggest similar names for undefined function/method/class errors

[email protected] (Jorg Sowa)
Newsgroups php.internals
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.