[Debug] Fixed cast of stream
Reproducer: ``` $socket = stream_socket_server("tcp://0:9911", $e1, $e2, STREAM_SERVER_LISTEN); dump($socket); ```
This commit is contained in:
parent
f4a635957e
commit
814ba5c477
@ -41,7 +41,9 @@ class ResourceCaster
|
||||
public static function castStream($stream, array $a, Stub $stub, $isNested)
|
||||
{
|
||||
$a = stream_get_meta_data($stream) + static::castStreamContext($stream, $a, $stub, $isNested);
|
||||
if (isset($a['uri'])) {
|
||||
$a['uri'] = new LinkStub($a['uri']);
|
||||
}
|
||||
|
||||
return $a;
|
||||
}
|
||||
|
Reference in New Issue
Block a user