Hello internals,

Would this change be acceptable to merge without an RFC?

https://github.com/php/php-src/pull/22589

It adds “did you mean …?” suggestions to errors for undefined functions.
While it does not change language semantics, it changes error messages and
introduces additional checks on error paths, so I would like to confirm
whether consensus on the PR is sufficient or an RFC is expected.

If the sentiment is positive, I would like to pursue this direction for
methods, classes, constants etc.

Similar approach is used in Python or Ruby already:

- Python: https://docs.python.org/3/whatsnew/3.10.html#nameerrors

- Ruby: https://docs.ruby-lang.org/en/3.3/DidYouMean.html
Kind regards,
Jorg

Reply via email to