Skip to content

Commit 1937a79

Browse files
committed
minor #19015 Update migration.rst (gpetraroli)
This PR was squashed before being merged into the 6.3 branch. Discussion ---------- Update migration.rst Change return type of handleRequest to void <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 9f017ca Update migration.rst
2 parents 6bd5c52 + 9f017ca commit 1937a79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

migration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ somewhat like this::
341341
}
342342

343343

344-
public static function handleRequest(Request $request, Response $response, string $publicDirectory): ?string
344+
public static function handleRequest(Request $request, Response $response, string $publicDirectory): void
345345
{
346346
$legacyScriptFilename = LegacyBridge::getLegacyScript($request);
347347

@@ -461,7 +461,7 @@ which script to call and wrap the output in a response class::
461461
public function loadLegacyScript(string $requestPath, string $legacyScript): StreamedResponse
462462
{
463463
return new StreamedResponse(
464-
function () use ($requestPath, $legacyScript): string {
464+
function () use ($requestPath, $legacyScript): void {
465465
$_SERVER['PHP_SELF'] = $requestPath;
466466
$_SERVER['SCRIPT_NAME'] = $requestPath;
467467
$_SERVER['SCRIPT_FILENAME'] = $legacyScript;

0 commit comments

Comments
 (0)