close Warning: PreferencesModule failed with TracError: Unable to instantiate component <class 'trac.prefs.web_ui.AdvancedPreferencePanel'> (super(type, obj): obj (type AdvancedPreferencePanel) is not an instance or subtype of type (Markup).)

source: externals/php/vendor/guzzlehttp/psr7/src/NoSeekStream.php@ 8a5cdba

Last change on this file since 8a5cdba was 01a620f, checked in by Joachim Langenbach <joachim.langenbach@…>, 11 years ago

Removed submodules for php externals and use composer to provide them and versioned them afterwards

  • Property mode set to 100644
File size: 424 bytes
Line 
1<?php
2namespace GuzzleHttp\Psr7;
3
4use Psr\Http\Message\StreamInterface;
5
6/**
7 * Stream decorator that prevents a stream from being seeked
8 */
9class NoSeekStream implements StreamInterface
10{
11 use StreamDecoratorTrait;
12
13 public function seek($offset, $whence = SEEK_SET)
14 {
15 throw new \RuntimeException('Cannot seek a NoSeekStream');
16 }
17
18 public function isSeekable()
19 {
20 return false;
21 }
22}
Note: See TracBrowser for help on using the repository browser.