~ancarda/psr7-string-stream

ref: 534f6c3a39beb5971eb24ab362066502dc5924cf psr7-string-stream/src/StringStream.php -rw-r--r-- 7.0 KiB
Fix write() to not assume appending is correct

This commit rewrites the `write()' function to check if it's at EOF
before appending. Now the function is able to prepend if at SOF, and
can also overwrite data in the middle of a stream.
Initial commit