I tried creating php-error.php, but it is not triggered. It still stops rendering template at place, where error ocured, so in my example with anchor, site output ends with <a href=” I tried making intentional syntax error which throws PHP Parse error: syntax error – that´s when php-error.php is rendered. So php-error.php will render for syntax error, but not for TypeError. Does is depends on some other settings? Like WP_DEBUG, WP_DEBUG_DISPLAY? I tried both true/false.