Why is the error output as a string?

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.

Answer 2

Maybe I installed xdebug incorrectly, or installed some kind of “castrated” version. Well, or at least, look, maybe there are some configs there.