Skip to content

Commit b1766f3

Browse files
authored
Do not put PHP attributes in comment block
1 parent 0c64945 commit b1766f3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Turbo/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ If you're using Symfony 5.3, the new `renderForm()` shortcut takes care of this
9696
automatically:
9797

9898
```php
99-
/**
100-
* #[Route('/product/new', name: 'product_new')]
101-
*/
99+
#[Route('/product/new', name: 'product_new')]
102100
public function newProduct(Request $request): Response
103101
{
104102
$form = $this->createForm(ProductFormType::class, null, [
@@ -121,9 +119,7 @@ public function newProduct(Request $request): Response
121119
If you're _not_ using the `renderForm()` shortcut, adjust your code manually:
122120

123121
```diff
124-
/**
125-
* #[Route('/product/new')]
126-
*/
122+
#[Route('/product/new')]
127123
public function newProduct(Request $request): Response
128124
{
129125
$form = $this->createForm(ProductFormType::class);

0 commit comments

Comments
 (0)