17 use Psr\Http\Message\UriInterface;
38 if (!is_string($uri) && !($uri instanceof UriInterface)) {
39 throw new \InvalidArgumentException(
40 'The given uri be a string or UriInterface - '
41 . (is_object($uri) ? get_class($uri) : gettype($uri)) .
' given',
46 parent::__construct(
'php://temp', $status,
$headers);