← All changes
|
vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php
+0
-22
18.2
→
trunk
View file →
| @@ -1,22 +1,0 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -namespace YoastSEO_Vendor\GuzzleHttp\Psr7; | |
| 4 | - | |
| 5 | -use YoastSEO_Vendor\Psr\Http\Message\StreamInterface; | |
| 6 | -/** | |
| 7 | - * Stream decorator that prevents a stream from being seeked. | |
| 8 | - * | |
| 9 | - * @final | |
| 10 | - */ | |
| 11 | -class NoSeekStream implements \YoastSEO_Vendor\Psr\Http\Message\StreamInterface | |
| 12 | -{ | |
| 13 | - use StreamDecoratorTrait; | |
| 14 | - public function seek($offset, $whence = \SEEK_SET) | |
| 15 | - { | |
| 16 | - throw new \RuntimeException('Cannot seek a NoSeekStream'); | |
| 17 | - } | |
| 18 | - public function isSeekable() | |
| 19 | - { | |
| 20 | - return \false; | |
| 21 | - } | |
| 22 | -} | |