From b1766f35087e74072326e96b33b30053f3e3faea Mon Sep 17 00:00:00 2001 From: Richard van Laak Date: Sun, 12 Dec 2021 12:00:03 +0100 Subject: [PATCH] Do not put PHP attributes in comment block --- src/Turbo/README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Turbo/README.md b/src/Turbo/README.md index dd60bd6a46d..36eec940b0a 100644 --- a/src/Turbo/README.md +++ b/src/Turbo/README.md @@ -96,9 +96,7 @@ If you're using Symfony 5.3, the new `renderForm()` shortcut takes care of this automatically: ```php -/** - * #[Route('/product/new', name: 'product_new')] - */ +#[Route('/product/new', name: 'product_new')] public function newProduct(Request $request): Response { $form = $this->createForm(ProductFormType::class, null, [ @@ -121,9 +119,7 @@ public function newProduct(Request $request): Response If you're _not_ using the `renderForm()` shortcut, adjust your code manually: ```diff -/** - * #[Route('/product/new')] - */ +#[Route('/product/new')] public function newProduct(Request $request): Response { $form = $this->createForm(ProductFormType::class);