php-graphql-client
php-graphql-client copied to clipboard
Cast the stream to string instead of getting the contents
PHP FIG PSR-7 describes getContents as "Returns the remaining contents in a string", while the interface description mentions "[...] including serialization of the entire stream to a string.". For some implementations of PSR-7 the stream is not rewinded and thus getContents turns out to be an empty string in some cases. Also see https://github.com/php-fig/http-message/blob/efd67d1dc14a7ef4fc4e518e7dee91c271d524e4/src/StreamInterface.php#L136-L143 and https://github.com/Nyholm/psr7/issues/135#issuecomment-546593859.
@mghoneimy This seems a very trivial PR. Although I understand this might be a project you just handle in your spare time (of which I do not know how much you have) I hope you can spend some time on approving the workflow to be run and checking this PR.
@mghoneimy could you respond to this PR?
Seems to be abandoned. I will better use another library.
Hello @saschaende :wave:
From Jul 6th and until now. Did you actually end up going with another library? If so, which one, if I may ask?
Hello @saschaende 👋
From Jul 6th and until now. Did you actually end up going with another library? If so, which one, if I may ask?
REST (!!!)