Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 268aae5

Browse files
minor #52217 [HttpFoundation] initialize protected callback property with null (xabbuh)
This PR was merged into the 7.0 branch. Discussion ---------- [HttpFoundation] initialize protected callback property with null | Q | A | ------------- | --- | Branch? | 7.0 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #51972 (comment) | License | MIT Commits ------- b780c12 initialize protected callback property with null
2 parents 1b172d6 + b780c12 commit 268aae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/StreamedResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727
class StreamedResponse extends Response
2828
{
29-
protected \Closure $callback;
29+
protected ?\Closure $callback = null;
3030
protected bool $streamed = false;
3131

3232
private bool $headersSent = false;

0 commit comments

Comments
 (0)