Spring Challenge 2023: notices and warnings are not displayed correctly

I’m trying to debug my PHP program for the Spring Challenge.
There’s a warning, but I can’t see the full message :

It looks like when there’s a notice or a warning, the error output is flooded with new lines, which makes the actual message go beyond the characters limit.

Is there a way to fix this ?