original_string: public function setUncaughtExceptions($env, array $exceptions = [])
      {
          $this->swapArgs($env, $exceptions, $this->running_env, false);
          
          $this->exceptions[$env] = [];
          if (!empty($exceptions)) {
              foreach($exceptions as $exception) {
                  $this->exceptions[$env][] = Objects::getFullName($exception);
              }
              if (!$this->getCallback($env)) {
                  $this->setCallback($env, $this->getDefaultCallback());
              }
          }
  
          return $this;
      }
code: public function setUncaughtExceptions($env, array $exceptions = [])
      {
          $this->swapArgs($env, $exceptions, $this->running_env, false);
          
          $this->exceptions[$env] = [];
          if (!empty($exceptions)) {
              foreach($exceptions as $exception) {
                  $this->exceptions[$env][] = Objects::getFullName($exception);
              }
              if (!$this->getCallback($env)) {
                  $this->setCallback($env, $this->getDefaultCallback());
              }
          }
  
          return $this;
      }
code_tokens: public function setUncaughtExceptions ( $ env , array $ exceptions = [ ] ) { $ this -> swapArgs ( $ env , $ exceptions , $ this -> running_env , false ) ; $ this -> exceptions [ $ env ] = [ ] ; if ( ! empty ( $ exceptions ) ) { foreach ( $ exceptions as $ exception ) { $ this -> exceptions [ $ env ] [ ] = Objects :: getFullName ( $ exception ) ; } if ( ! $ this -> getCallback ( $ env ) ) { $ this -> setCallback ( $ env , $ this -> getDefaultCallback ( ) ) ; } } return $ this ; }
docstring: Sets the uncaught exceptions which will be handled
  
  By default every uncaught exception is handled, but specific types may be
  specified using this method. The $exceptions argument may be an array of class
  names, or array of objects.
  
  Uncaught exceptions will not be handled when this method is given an empty
  array.
  
  Uses the currently running environment when none is given.
  
  Examples:
  ```php
  $handler->setUncaughtExceptions([RuntimeException::class, LogicException::class]);
  
  $handler->setUncaughtException("live", [RuntimeException::class, LogicException::class]);
  
  $handler->setUncaughtException("dev", [InvalidArgumentException::class, LogicException::class]);
  ```
  
  @param string|string[]|Exception[] $env        Name of the environment
  @param string[]|Exception[]        $exceptions The exceptions to handle
  
  @return $this
docstring_tokens: Sets the uncaught exceptions which will be handled