original_string: public function addPaths(array $paths)
      {
          deprecationWarning(
              'ServerRequest::addPaths() is deprecated. ' .
              'Use `withAttribute($key, $value)` instead.'
          );
          foreach (['webroot', 'here', 'base'] as $element) {
              if (isset($paths[$element])) {
                  $this->{$element} = $paths[$element];
              }
          }
  
          return $this;
      }
code: public function addPaths(array $paths)
      {
          deprecationWarning(
              'ServerRequest::addPaths() is deprecated. ' .
              'Use `withAttribute($key, $value)` instead.'
          );
          foreach (['webroot', 'here', 'base'] as $element) {
              if (isset($paths[$element])) {
                  $this->{$element} = $paths[$element];
              }
          }
  
          return $this;
      }
code_tokens: public function addPaths ( array $ paths ) { deprecationWarning ( 'ServerRequest::addPaths() is deprecated. ' . 'Use `withAttribute($key, $value)` instead.' ) ; foreach ( [ 'webroot' , 'here' , 'base' ] as $ element ) { if ( isset ( $ paths [ $ element ] ) ) { $ this -> { $ element } = $ paths [ $ element ] ; } } return $ this ; }
docstring: Add paths to the requests' paths vars. This will overwrite any existing paths.
  Provides an easy way to modify, here, webroot and base.
  
  @param array $paths Array of paths to merge in
  @return $this The current object, you can chain this method.
  @deprecated 3.6.0 Mutating a request in place is deprecated. Use `withAttribute()` to modify paths instead.
docstring_tokens: Add paths to the requests paths vars . This will overwrite any existing paths . Provides an easy way to modify here webroot and base .