Skip to content

Commit 94e8bdf

Browse files
committed
minor #172 Fix small typo in Turbo code example (thomas-miceli)
This PR was merged into the main branch. Discussion ---------- Fix small typo in Turbo code example | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Tickets | none | License | MIT An example from the Turbo README.md does not have the dollar `$` before `this` variable, and also a closing parenthesis instead of a closing curly brace. Commits ------- 72f868e Fix small typos in code example
2 parents 0e507f3 + 72f868e commit 94e8bdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Turbo/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ automatically:
101101
*/
102102
public function newProduct(Request $request): Response
103103
{
104-
$form = this->createForm(ProductFormType::class, null, [
104+
$form = $this->createForm(ProductFormType::class, null, [
105105
'action' => $this->generateUrl('product_new'),
106106
]);
107107
$form->handleRequest($request);
@@ -110,7 +110,7 @@ public function newProduct(Request $request): Response
110110
// save...
111111
112112
return $this->redirectToRoute('product_list');
113-
);
113+
}
114114
115115
return $this->renderForm('product/new.html.twig', [
116116
'form' => $form,

0 commit comments

Comments
 (0)