# wordpress-seo/27.7/vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 27.7. 24 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/27.7/code/vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/27.7/raw/vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php
- Modified: 2023-09-19T09:07:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/27.7/code/vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php#L10-L20`.

```php
<?php

declare (strict_types=1);
namespace YoastSEO_Vendor\GuzzleHttp\Psr7;

use YoastSEO_Vendor\Psr\Http\Message\StreamInterface;
/**
 * Stream decorator that prevents a stream from being seeked.
 */
final class NoSeekStream implements \YoastSEO_Vendor\Psr\Http\Message\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;
    }
}

```
