#107626Properly resolve resource modes in Stream::isWritable()
Description
<?php
use TYPO3\CMS\Core\Http\HtmlResponse;
require_once 'vendor/autoload.php';
$response = new HtmlResponse('');
$stream = $response->getBody();
if ($stream->isWritable()) {
$stream->write('Hello World');
}
var_dump((string)$stream);
The example above would just output an empty string, since the stream is not considered to be writable (which is incorrect, the stream actually is writable and was created with new Stream('php://temp', 'wb+')).