Skip to content

Commit

Permalink
initialize protected callback property with null
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Oct 21, 2023
1 parent 59b567e commit 915282b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StreamedResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*/
class StreamedResponse extends Response
{
protected \Closure $callback;
protected ?\Closure $callback = null;
protected bool $streamed = false;

private bool $headersSent = false;
Expand Down

0 comments on commit 915282b

Please sign in to comment.