original_string: public function setCoreErrors($env, $errors = 0)
      {
          $this->swapArgs($env, $errors, $this->running_env, false);
          
          $this->errors[$env] = $errors;
          if (!$this->getCallback($env)) {
              $this->setCallback($env, $this->getDefaultCallback());
          }
          
          return $this;
      }
code: public function setCoreErrors($env, $errors = 0)
      {
          $this->swapArgs($env, $errors, $this->running_env, false);
          
          $this->errors[$env] = $errors;
          if (!$this->getCallback($env)) {
              $this->setCallback($env, $this->getDefaultCallback());
          }
          
          return $this;
      }
code_tokens: public function setCoreErrors ( $ env , $ errors = 0 ) { $ this -> swapArgs ( $ env , $ errors , $ this -> running_env , false ) ; $ this -> errors [ $ env ] = $ errors ; if ( ! $ this -> getCallback ( $ env ) ) { $ this -> setCallback ( $ env , $ this -> getDefaultCallback ( ) ) ; } return $ this ; }
docstring: Sets the core errors which will be handled
  
  By default only a few fatal errors are handled, but you can specify exactly which
  errors to handle with this method.
  
  Uses the currently running environment when none is given.
  
  Examples:
  ```php
  $handler->setCoreErrors(E_ERROR | E_WARNING | E_DEPRECIATED);
  
  $handler->setCoreErrors("live", E_ERROR | E_WARNING);
  
  $handler->setCoreError("dev", E_ERROR | E_WARNING | E_NOTICE);
  ```
  
  @param string|int $env    Name of the environment
  @param int        $errors The errors to handle
  
  @return $this
docstring_tokens: Sets the core errors which will be handled