- WIP on PHP 8.5 support

This commit is contained in:
Dave M. 2026-07-14 15:53:21 +00:00
parent fe56a1727b
commit 042ff5cc2f
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);