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

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.1/code/vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.1/raw/vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php
- Modified: 2026-06-23T11:22:06+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/28.1/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
    {
        if (!\is_int($offset)) {
            \YoastSEO_Vendor\trigger_deprecation('guzzlehttp/psr7', '2.11', 'Passing %s to StreamInterface::seek() is deprecated; guzzlehttp/psr7 3.0 requires int for $offset.', \get_debug_type($offset));
        }
        if (!\is_int($whence)) {
            \YoastSEO_Vendor\trigger_deprecation('guzzlehttp/psr7', '2.11', 'Passing %s to StreamInterface::seek() is deprecated; guzzlehttp/psr7 3.0 requires int for $whence.', \get_debug_type($whence));
        }
        throw new \RuntimeException('Cannot seek a NoSeekStream');
    }
    public function isSeekable() : bool
    {
        return \false;
    }
}

```
