From 01b8ab04b93f9550705ed1f99541ab9d52900cee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 12 Dec 2022 10:16:15 +0100 Subject: [PATCH] Fix example for PSR-15 FormBuilder handling --- docs/migration/wsc55/php.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/migration/wsc55/php.md b/docs/migration/wsc55/php.md index 3438f8f8..5a81519a 100644 --- a/docs/migration/wsc55/php.md +++ b/docs/migration/wsc55/php.md @@ -237,14 +237,14 @@ If validation succeeded, the controller must perform the resulting action and re ```php if ($request->getMethod() === 'GET') { - return $dialogForm->toJsonResponse(); + return $dialogForm->toResponse(); } elseif ($request->getMethod() === 'POST') { - $response = $dialogForm->validatePsr7Request($request); + $response = $dialogForm->validateRequest($request); if ($response !== null) { return $response; } - $data = $form->getData(); + $data = $dialogForm->getData(); // Use $data. -- 2.20.1