for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zapheus\Bridge\Psr\Zapheus;
use Psr\Http\Message\UriInterface;
use Zapheus\Http\Message\Uri as BaseUri;
use Zapheus\Http\Message\UriInterface as ZapheusUriInterface;
/**
* PSR-07 to Zapheus URI Bridge
*
* @package Zapheus
* @author Rougin Royce Gutib <[email protected]>
*/
class Uri extends BaseUri implements ZapheusUriInterface
{
* @var \Psr\Http\Message\UriInterface
protected $uri;
* Initializes the URI instance.
* @param \Psr\Http\Message\UriInterface $uri
public function __construct(UriInterface $uri)
$this->fragment = $uri->getFragment();
$this->query = $uri->getQuery();
$this->authority = $uri->getAuthority();
authority
$this->host = $uri->getHost();
$this->path = $uri->getPath();
$this->port = $uri->getPort();
$this->scheme = $uri->getScheme();
$this->user = $uri->getUserInfo();
$this->uri = (string) $uri;
(string)$uri
string
Psr\Http\Message\UriInterface
$uri
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
}