original_string: public function append()
      {
          foreach (func_get_args() as $value) {
              if ($value instanceof ResponseInterface
                  || $value instanceof \Exception
                  || $value instanceof PromiseInterface
                  || is_callable($value)
              ) {
                  $this->queue[] = $value;
              } else {
                  throw new \InvalidArgumentException('Expected a response or '
                      . 'exception. Found ' . \GuzzleHttp\describe_type($value));
              }
          }
      }
code: public function append()
      {
          foreach (func_get_args() as $value) {
              if ($value instanceof ResponseInterface
                  || $value instanceof \Exception
                  || $value instanceof PromiseInterface
                  || is_callable($value)
              ) {
                  $this->queue[] = $value;
              } else {
                  throw new \InvalidArgumentException('Expected a response or '
                      . 'exception. Found ' . \GuzzleHttp\describe_type($value));
              }
          }
      }
code_tokens: public function append ( ) { foreach ( func_get_args ( ) as $ value ) { if ( $ value instanceof ResponseInterface || $ value instanceof \ Exception || $ value instanceof PromiseInterface || is_callable ( $ value ) ) { $ this -> queue [ ] = $ value ; } else { throw new \ InvalidArgumentException ( 'Expected a response or ' . 'exception. Found ' . \ GuzzleHttp \ describe_type ( $ value ) ) ; } } }
docstring: Adds one or more variadic requests, exceptions, callables, or promises
  to the queue.
docstring_tokens: Adds one or more variadic requests exceptions callables or promises to the queue .