public function register($theDebug = false, $theErrorTypes = null)
  {
    // PHP 5.6 set default value with expression.
    if ($theErrorTypes===null)
    {
      $theErrorTypes = E_ALL | E_STRICT;
    }

    $this->myDebug = $theDebug;

    ini_set('display_errors', false);
    set_exception_handler([$this, 'handleException']);
    set_error_handler([$this, 'handleError'], $theErrorTypes);
  }
public function register($theDebug = false, $theErrorTypes = null)
  {
    // PHP 5.6 set default value with expression.
    if ($theErrorTypes===null)
    {
      $theErrorTypes = E_ALL | E_STRICT;
    }

    $this->myDebug = $theDebug;

    ini_set('display_errors', false);
    set_exception_handler([$this, 'handleException']);
    set_error_handler([$this, 'handleError'], $theErrorTypes);
  }
public function register ( $ theDebug = false , $ theErrorTypes = null ) { // PHP 5.6 set default value with expression. if ( $ theErrorTypes === null ) { $ theErrorTypes = E_ALL | E_STRICT ; } $ this -> myDebug = $ theDebug ; ini_set ( 'display_errors' , false ) ; set_exception_handler ( [ $ this , 'handleException' ] ) ; set_error_handler ( [ $ this , 'handleError' ] , $ theErrorTypes ) ; }
Registers this error handler.

@param bool     $theDebug      If true details and call trace of exceptions are shown.
@param null|int $theErrorTypes The mask for triggering this error handler. Defaults to E_ALL | E_STRICT.
Registers this error handler .