src/Chiron/Application.php
public function initErrorVisibility($debug = true)
    {
        /* Display startup errors which cannot be handled by the normal error handler. */
        ini_set('display_startup_errors', $debug);
        /* Display errors (redundant if the default error handler is overridden). */
        ini_set('display_errors', $debug);
        /* Report errors at all severity levels (redundant if the default error handler is overridden). */
        error_reporting($debug ? E_ALL : 0);
        /* Report detected memory leaks. */
        ini_set('report_memleaks', $debug);
    }
public function initErrorVisibility($debug = true)
    {
        /* Display startup errors which cannot be handled by the normal error handler. */
        ini_set('display_startup_errors', $debug);
        /* Display errors (redundant if the default error handler is overridden). */
        ini_set('display_errors', $debug);
        /* Report errors at all severity levels (redundant if the default error handler is overridden). */
        error_reporting($debug ? E_ALL : 0);
        /* Report detected memory leaks. */
        ini_set('report_memleaks', $debug);
    }
public function initErrorVisibility ( $ debug = true ) { /* Display startup errors which cannot be handled by the normal error handler. */ ini_set ( 'display_startup_errors' , $ debug ) ; /* Display errors (redundant if the default error handler is overridden). */ ini_set ( 'display_errors' , $ debug ) ; /* Report errors at all severity levels (redundant if the default error handler is overridden). */ error_reporting ( $ debug ? E_ALL : 0 ) ; /* Report detected memory leaks. */ ini_set ( 'report_memleaks' , $ debug ) ; }
Configure whether to display PHP errors or silence them.

Some of the settings affected here are redundant if the error handler is
overridden, but some of them pertain to errors which the error handler
does not receive, namely start-up errors and memory leaks.

@param bool $debug whether to display errors or silence them
Configure whether to display PHP errors or silence them .