function __construct($file = null, $mode = \IO\Stream\Mode::READ) { if (is_string($file)) { $file = new File($file); } if (!$file instanceof File) { throw new \IO\Exception('GZ\\Stream may only open GZ\\File'); } parent::__construct($file, $mode); }