Skip to content

Commit 3f7bc41

Browse files
committed
minor #201 Do not put PHP attributes in comment block (rvanlaak)
This PR was merged into the 2.x branch. Discussion ---------- Do not put PHP attributes in comment block | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Tickets | Fix docs | License | MIT replaces symfony/ux-turbo#7 Commits ------- b1766f3 Do not put PHP attributes in comment block
2 parents 0c64945 + b1766f3 commit 3f7bc41

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)