src/Viserio/Component/Http/Stream.php
public function tell(): int
    {
        if (! isset($this->stream)) {
            throw new RuntimeException('Stream is detached.');
        }

        $result = \ftell($this->stream);

        if (! \is_int($result) || $this->isPipe()) {
            throw new RuntimeException('Unable to determine stream position.');
        }

        return $result;
    }
public function tell(): int
    {
        if (! isset($this->stream)) {
            throw new RuntimeException('Stream is detached.');
        }

        $result = \ftell($this->stream);

        if (! \is_int($result) || $this->isPipe()) {
            throw new RuntimeException('Unable to determine stream position.');
        }

        return $result;
    }
{@inheritdoc}

@throws \RuntimeException If Stream is detached
@throws \RuntimeException If Unable to determine stream position