I'm using WP JSON to return JSON for certain routes.
Prior to WordPress 5, WP JSON would return PHP errors in the response, e.g.
Warning:xxx when a PHP error was encountered. Since I upgraded to WordPress 5, such errors are supressed/ skipped and JSON is returned. Fatal errors return a 500 as expected.
I cannot find any documentation identifying why these errors are not being returned. And Google doesn't seem to be shedding any light. Does anybody know what's going on? Also, if it's "toggleable", does anyone know how to "turn errors on"?
PHP outputs errors to screen as usual elsewhere in WordPress.