- WIP on PHP 8.5 support
This commit is contained in:
parent
fe56a1727b
commit
042ff5cc2f
@ -24,7 +24,7 @@ class Uri implements UriInterface
|
||||
|
||||
protected null|string $fragment;
|
||||
|
||||
public function __construct(string $uri = null)
|
||||
public function __construct(?string $uri = null)
|
||||
{
|
||||
$this->parse($uri);
|
||||
}
|
||||
|
||||
@ -107,7 +107,7 @@ class Stream implements StreamInterface
|
||||
return $this->hasMode('acwx+');
|
||||
}
|
||||
|
||||
public function write($string) : false|int
|
||||
public function write($string) : int
|
||||
{
|
||||
if (! $this->isWritable()) {
|
||||
throw new \UnexpectedValueException("An error occured while trying to seek an unseekable stream.");
|
||||
@ -166,7 +166,7 @@ class Stream implements StreamInterface
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function getMetadata(string $key = null) : mixed
|
||||
public function getMetadata(?string $key = null) : mixed
|
||||
{
|
||||
$metadata = stream_get_meta_data($this->stream);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user