We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b50f5e2 commit 7dceaa1Copy full SHA for 7dceaa1
StreamedResponse.php
@@ -56,8 +56,12 @@ public function setCallback(callable $callback): static
56
return $this;
57
}
58
59
- public function getCallback(): \Closure
+ public function getCallback(): ?\Closure
60
{
61
+ if (!isset($this->callback)) {
62
+ return null;
63
+ }
64
+
65
return ($this->callback)(...);
66
67
0 commit comments