if (\PHP_VERSION_ID >= 70400
) { throw $e;
} trigger_error(sprintf('%s::__toString exception: %s', self::
class,
(string) $e), E_USER_ERROR
);
return '';
} } public function getContents(): string
{ return Utils::
copyToString($this);
} /**
* Allow decorators to implement custom methods
*
* @return mixed
*/
public function __call(string
$method, array
$args) { /** @var callable $callable */
$callable =
[$this->stream,
$method];