Please tell me why the error is displayed as a string, and not as a sign?
Answer 1, authority 100%
very simple because
html_errors = Off
set it to On and you will be happy 🙂
I struggled with this myself.
Maybe I installed xdebug incorrectly, or installed some kind of “castrated” version. Well, or at least, look, maybe there are some configs there.