Skip to content

Commit 29f60d1

Browse files
minor symfony#61075 [HttpFoundation] Fix deprecation in tests on PHP 8.5 (nicolas-grekas)
This PR was merged into the 7.3 branch. Discussion ---------- [HttpFoundation] Fix deprecation in tests on PHP 8.5 | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT 3x: ob_flush(): Returning a non-string result from user output handler {closure:Symfony\Component\HttpFoundation\Tests\StreamedResponseTest::testConstructorWithChunks():34} is deprecated 3x in StreamedResponseTest::testConstructorWithChunks from Symfony\Component\HttpFoundation\Tests 1x: ob_get_clean(): Returning a non-string result from user output handler {closure:Symfony\Component\HttpFoundation\Tests\StreamedResponseTest::testConstructorWithChunks():34} is deprecated 1x in StreamedResponseTest::testConstructorWithChunks from Symfony\Component\HttpFoundation\Tests Commits ------- f79e73c [HttpFoundation] Fix deprecation in tests on PHP 8.5
2 parents 888e24b + f79e73c commit 29f60d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function testConstructorWithChunks()
3232

3333
$buffer = '';
3434
ob_start(function (string $chunk) use (&$buffer) {
35-
$buffer .= $chunk;
35+
return $buffer .= $chunk;
3636
});
3737
$callback();
3838

0 commit comments

Comments
 (0)