original_string: public function getErrors()
      {
          foreach ($this->errors as $i => $error) {
              if ($error instanceof \Closure) {
                  $this->errors[$i] = (string) $error();
              } elseif (!\is_string($error)) {
                  $this->errors[$i] = (string) $error;
              }
          }
  
          return $this->errors;
      }
code: public function getErrors()
      {
          foreach ($this->errors as $i => $error) {
              if ($error instanceof \Closure) {
                  $this->errors[$i] = (string) $error();
              } elseif (!\is_string($error)) {
                  $this->errors[$i] = (string) $error;
              }
          }
  
          return $this->errors;
      }
code_tokens: public function getErrors ( ) { foreach ( $ this -> errors as $ i => $ error ) { if ( $ error instanceof \ Closure ) { $ this -> errors [ $ i ] = ( string ) $ error ( ) ; } elseif ( ! \ is_string ( $ error ) ) { $ this -> errors [ $ i ] = ( string ) $ error ; } } return $ this -> errors ; }
docstring: Returns any errors that occurred while building this Definition.
  
  @return array
docstring_tokens: Returns any errors that occurred while building this Definition .