This commit is contained in:
2025-10-02 16:07:12 +02:00
parent e01874a1e4
commit 796520fb0c
1796 changed files with 655105 additions and 16 deletions

View File

@@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
namespace GuzzleHttp7\Psr7;
use Psr\Http7\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;
}
}