From 9f017cae6f771b95dd5389483f378a9c2e7efc76 Mon Sep 17 00:00:00 2001 From: Giuseppe Petraroli <94477373+gpetraroli@users.noreply.github.com> Date: Thu, 12 Oct 2023 13:43:06 +0200 Subject: [PATCH] Update migration.rst --- migration.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migration.rst b/migration.rst index 5be3ea51834..16fa43fa281 100644 --- a/migration.rst +++ b/migration.rst @@ -341,7 +341,7 @@ somewhat like this:: } - public static function handleRequest(Request $request, Response $response, string $publicDirectory): ?string + public static function handleRequest(Request $request, Response $response, string $publicDirectory): void { $legacyScriptFilename = LegacyBridge::getLegacyScript($request); @@ -461,7 +461,7 @@ which script to call and wrap the output in a response class:: public function loadLegacyScript(string $requestPath, string $legacyScript): StreamedResponse { return new StreamedResponse( - function () use ($requestPath, $legacyScript): string { + function () use ($requestPath, $legacyScript): void { $_SERVER['PHP_SELF'] = $requestPath; $_SERVER['SCRIPT_NAME'] = $requestPath; $_SERVER['SCRIPT_FILENAME'] = $legacyScript;