Skip to content

Commit 978b737

Browse files
Merge branch '6.3' into 6.4
* 6.3: Sync .github/expected-missing-return-types.diff [FrameworkBundle] Add void return-type to ErrorLoggerCompilerPass [DoctrineBridge] Fix cross-versions compat [HttpKernel] Handle nullable callback of StreamedResponse [Mailer] Capitalize sender header for Mailgun [FrameworkBundle] Configure `logger` as error logger if the Monolog Bundle is not registered DX: PHP CS Fixer - drop explicit nullable_type_declaration_for_default_null_value config, as it's part of ruleset anyway DX: PHP CS Fixer - drop explicit no_superfluous_phpdoc_tags config, as it's part of ruleset already Revert "Add keyword `dev` to leverage composer hint" [Validator] Add missing Ukrainian translations #51960 [Validator] Add missing translations for Indonesian (id) [Validator] Add missing translations for Vietnamese (VI) Add missing Validator translations - Croatian (hr) Run high-deps tests with ORM 3 and DBAL 4 [FrameworkBundle] Fix calling Kernel::warmUp() when running cache:warmup
2 parents 688f1a9 + 7dceaa1 commit 978b737

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

StreamedResponse.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,12 @@ public function setCallback(callable $callback): static
5656
return $this;
5757
}
5858

59-
public function getCallback(): \Closure
59+
public function getCallback(): ?\Closure
6060
{
61+
if (!isset($this->callback)) {
62+
return null;
63+
}
64+
6165
return ($this->callback)(...);
6266
}
6367

0 commit comments

Comments
 (0)