-
Notifications
You must be signed in to change notification settings - Fork 166
Fix: Remove dependency on guzzlehttp/psr7 #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| { | ||
| /** | ||
| * @param Span[][] $traces | ||
| * @return ResponseInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return value of any of the available implementations in this repository is never used, so it is probably not necessary to return anything from this method at all.
| { | ||
| public function send(array $traces) | ||
| { | ||
| return new Response(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
| "php": "^5.6 || ^7.0", | ||
| "guzzlehttp/psr7": "^1.4.0", | ||
| "opentracing/opentracing": "1.0.0-beta5", | ||
| "psr/http-message": "^1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this dependency because it is used in
dd-trace-php/src/DDTrace/Encoder.php
Lines 5 to 13 in 8826319
| use Psr\Http\Message\StreamInterface; | |
| interface Encoder | |
| { | |
| /** | |
| * @param Span[][]|array $traces | |
| * @return string|StreamInterface | |
| */ | |
| public function encodeTraces(array $traces); |
| "require": { | ||
| "php": "^5.6 || ^7.0", | ||
| "guzzlehttp/psr7": "^1.4.0", | ||
| "ext-curl": "*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are using curl, this should probably be a dependency.
chuck
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All makes sense, thanks!
|
Thank you, @chuck! |
This PR
guzzlehttp/psr7and replaces it withpsr/http-message