Skip to content

Commit 27fa49a

Browse files
Merge branch '7.4' into 8.0
* 7.4: fix merge [HttpFoundation] Fix tests [JsonStreamer] Finish #62063 upmerge [Console] Fix signal handlers not being cleared after command termination [HttpFoundation] Fix RequestTest insulation ReflectionMethod::setAccessible() is no-op since PHP 8.1 CS fix fix merge
2 parents dd3ebe9 + 0101ff8 commit 27fa49a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Factory/PsrHttpFactory.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,11 @@ public function createResponse(Response $symfonyResponse): ResponseInterface
167167
return '';
168168
}, 1);
169169

170-
$symfonyResponse->sendContent();
171-
ob_end_clean();
170+
try {
171+
$symfonyResponse->sendContent();
172+
} finally {
173+
ob_end_clean();
174+
}
172175
} else {
173176
$stream->write($symfonyResponse->getContent());
174177
}

0 commit comments

Comments
 (0)