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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy