You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
I propose to rename AbstractLocation methods according to Http/Request methods: getUri() to getUriString(), uri() to getUri().
Zend/Http/Request:
/** * Return the URI for this request object * * @return HttpUri */publicfunctiongetUri()
{
if ($this->uri === null || is_string($this->uri)) {
$this->uri = newHttpUri($this->uri);
}
return$this->uri;
}
/** * Return the URI for this request object as a string * * @return string */publicfunctiongetUriString()
{
if ($this->uri instanceof HttpUri) {
return$this->uri->toString();
}
return$this->uri;
}
Zend/Http/Header/AbstractLocation:
/** * Return the URI for this header as an instance of Zend\Uri\Http * * @return UriInterface */publicfunctionuri()
{
if ($this->uri === null || is_string($this->uri)) {
$this->uri = UriFactory::factory($this->uri);
}
return$this->uri;
}
/** * Return the URI for this header * * @return string */publicfunctiongetUri()
{
if ($this->uri instanceof UriInterface) {
return$this->uri->toString();
}
return$this->uri;
}
The text was updated successfully, but these errors were encountered:
I propose to rename AbstractLocation methods according to Http/Request methods: getUri() to getUriString(), uri() to getUri().
Zend/Http/Request:
Zend/Http/Header/AbstractLocation:
The text was updated successfully, but these errors were encountered: