Skip to content

Commit

Permalink
rebuild docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Oct 19, 2023
1 parent 992fadf commit d336617
Showing 1 changed file with 1 addition and 55 deletions.
56 changes: 1 addition & 55 deletions docs/rules_overview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 52 Rules Overview
# 51 Rules Overview

## AnnotateRegexClassConstWithRegexLinkRule

Expand Down Expand Up @@ -1428,60 +1428,6 @@ final class SomeClass

<br>

## PreferredAttributeOverAnnotationRule

Use attribute instead of "%s" annotation

:wrench: **configure it!**

- class: [`Symplify\PHPStanRules\Rules\PreferredAttributeOverAnnotationRule`](../src/Rules/PreferredAttributeOverAnnotationRule.php)

```yaml
services:
-
class: Symplify\PHPStanRules\Rules\PreferredAttributeOverAnnotationRule
tags: [phpstan.rules.rule]
arguments:
annotations:
- Symfony\Component\Routing\Annotation\Route
```
```php
use Symfony\Component\Routing\Annotation\Route;

class SomeController
{
/**
* @Route()
*/
public function action()
{
}
}
```

:x:

<br>

```php
use Symfony\Component\Routing\Annotation\Route;

class SomeController
{
#[Route]
public function action()
{
}
}
```

:+1:

<br>

## PreferredClassRule

Instead of "%s" class/interface use "%s"
Expand Down

0 comments on commit d336617

Please sign in to comment.