Skip to content

Do not put PHP attributes in comment block #201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/Turbo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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, [
Expand All @@ -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);
Expand Down