CodeExplorer castStreamContext example
/**
* @return array
*/
public static function castProcess($process, array
$a, Stub
$stub, bool
$isNested) { return proc_get_status($process);
} public static function castStream($stream, array
$a, Stub
$stub, bool
$isNested): array
{ $a =
stream_get_meta_data($stream) +
static::
castStreamContext($stream,
$a,
$stub,
$isNested);
if ($a['uri'
] ?? false
) { $a['uri'
] =
new LinkStub($a['uri'
]);
} return $a;
} /**
* @return array
*/
public static function castStreamContext($stream, array
$a, Stub
$stub, bool
$isNested) {/**
* @return array
*/
public static function castProcess($process, array
$a, Stub
$stub, bool
$isNested) { return proc_get_status($process);
} public static function castStream($stream, array
$a, Stub
$stub, bool
$isNested): array
{ $a =
stream_get_meta_data($stream) +
static::
castStreamContext($stream,
$a,
$stub,
$isNested);
if ($a['uri'
] ?? false
) { $a['uri'
] =
new LinkStub($a['uri'
]);
} return $a;
} /**
* @return array
*/
public static function castStreamContext($stream, array
$a, Stub
$stub, bool
$isNested) {