CoreFiles by mySites.guru
NoSeekStream.php28 lines, 524 bytes, from Joomla_5.3.4-Stable-Full_Package.zip
Raw History Compare with 5.3.3
md5
be7eccffda2b5c6eb7abcc5d539d5100
sha1
db1ca2278ea876753e06250c699131977939bbcf
sha256
d8f3fcfbba6378d0c94b8e00295eb2b873523c255216c4f6bf738bb77eb43483
<?php

declare(strict_types=1);

namespace GuzzleHttp\Psr7;

use Psr\Http\Message\StreamInterface;

/**
 * Stream decorator that prevents a stream from being seeked.
 */
final class NoSeekStream implements StreamInterface
{
    use StreamDecoratorTrait;

    /** @var StreamInterface */
    private $stream;

    public function seek($offset, $whence = SEEK_SET): void
    {
        throw new \RuntimeException('Cannot seek a NoSeekStream');
    }

    public function isSeekable(): bool
    {
        return false;
    }
}

The same content is in 106 releases, Joomla 5.1.0-beta1 to 6.2.0-alpha1. See them all, or every version of this file.