Laravel version update
Laravel version update
This commit is contained in:
		
							
								
								
									
										14
									
								
								vendor/guzzlehttp/psr7/src/Stream.php
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								vendor/guzzlehttp/psr7/src/Stream.php
									
									
									
									
										vendored
									
									
								
							| @@ -207,8 +207,20 @@ class Stream implements StreamInterface | ||||
|         if (!$this->readable) { | ||||
|             throw new \RuntimeException('Cannot read from non-readable stream'); | ||||
|         } | ||||
|         if ($length < 0) { | ||||
|             throw new \RuntimeException('Length parameter cannot be negative'); | ||||
|         } | ||||
|  | ||||
|         return fread($this->stream, $length); | ||||
|         if (0 === $length) { | ||||
|             return ''; | ||||
|         } | ||||
|  | ||||
|         $string = fread($this->stream, $length); | ||||
|         if (false === $string) { | ||||
|             throw new \RuntimeException('Unable to read from stream'); | ||||
|         } | ||||
|  | ||||
|         return $string; | ||||
|     } | ||||
|  | ||||
|     public function write($string) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Manish Verma
					Manish Verma