@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | /** |
260 | 260 | * Closes the stream and any underlying resources. |
261 | 261 | * |
262 | - * @return void |
|
262 | + * @return boolean |
|
263 | 263 | */ |
264 | 264 | public function close() |
265 | 265 | { |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * |
278 | 278 | * After the stream has been detached, the stream is in an unusable state. |
279 | 279 | * |
280 | - * @return array|Resource Underlying PHP stream, if any |
|
280 | + * @return string Underlying PHP stream, if any |
|
281 | 281 | * @todo I'm not sure what detach is for so I don't know whether what I'm |
282 | 282 | * doing here is right. The reason I have the method at all is because |
283 | 283 | * psr7 StreamInterface has one.f |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | { |
240 | 240 | if (!$this->isConnected()) { |
241 | 241 | $e = null; |
242 | - $errhandler = function () use (&$e) { |
|
242 | + $errhandler = function() use (&$e) { |
|
243 | 243 | $e = new IOException(sprintf( |
244 | 244 | "Could not open connection for %s using mode %s", |
245 | 245 | $this->getUri(), |
@@ -555,7 +555,7 @@ discard block |
||
555 | 555 | $this->updateContext(); |
556 | 556 | return $this; |
557 | 557 | } |
558 | - throw new InvalidArgumentException("Context options must be an array, got: " . gettype($options)); |
|
558 | + throw new InvalidArgumentException("Context options must be an array, got: ".gettype($options)); |
|
559 | 559 | } |
560 | 560 | |
561 | 561 | /** |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | $this->updateContext(); |
576 | 576 | return $this; |
577 | 577 | } |
578 | - throw new InvalidArgumentException("Context parameters must be an array, got: " . gettype($params)); |
|
578 | + throw new InvalidArgumentException("Context parameters must be an array, got: ".gettype($params)); |
|
579 | 579 | } |
580 | 580 | |
581 | 581 | /** |