Conversation
clue
left a comment
There was a problem hiding this comment.
Good catch and thank you for filing this PR! 👍 Can you update the comments below and maybe squash this to a reasonable number of commits?
src/Io/ServerRequest.php
Outdated
| use Psr\Http\Message\StreamInterface; | ||
| use Psr\Http\Message\UriInterface; | ||
| use RingCentral\Psr7\Request; | ||
| use InvalidArgumentException; |
There was a problem hiding this comment.
It looks like these imports aren't used anywhere?
There was a problem hiding this comment.
Actually, constructor has @throws annotation. My IDE (PHPStorm) highlights it with undefined class InvalidArgumentException. I've removed import and added root namespace to annotation.
| * */ | ||
| class CloseProtectionStream extends EventEmitter implements ReadableStreamInterface | ||
| { | ||
| private $connection; |
There was a problem hiding this comment.
Good catch! Apparently, this should be replaced with $input which is used in the constructor 👍
e03f56a to
742a015
Compare
742a015 to
ceba730
Compare
|
@clue I've updated the request according to your comments |
clue
left a comment
There was a problem hiding this comment.
Thank you for the quick update! 👍
This PR provides some small code improvement: