Skip to content

Commit

Permalink
[automated] Re-Generate Nodes/Rectors Documentation (#5664)
Browse files Browse the repository at this point in the history
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
  • Loading branch information
TomasVotruba and TomasVotruba committed Feb 25, 2024
1 parent b6f5a03 commit 74a7c51
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions build/target-repository/docs/rector_rules_overview.md
@@ -1,4 +1,4 @@
# 361 Rules Overview
# 363 Rules Overview

<br>

Expand Down Expand Up @@ -54,7 +54,7 @@

- [Strict](#strict) (5)

- [Transform](#transform) (23)
- [Transform](#transform) (24)

- [TypeDeclaration](#typedeclaration) (44)

Expand Down Expand Up @@ -4693,9 +4693,9 @@ Change annotation to attribute
class SymfonyRoute
{
- /**
- * @Route("/path", name="action")
- * @Route("/path", name="action") api route
- */
+ #[Route(path: '/path', name: 'action')]
+ #[Route(path: '/path', name: 'action')] // api route
public function action()
{
}
Expand Down Expand Up @@ -5874,6 +5874,21 @@ Replace key value on specific attribute to class constant

<br>

### ConstFetchToClassConstFetchRector

Change const fetch to class const fetch

:wrench: **configure it!**

- class: [`Rector\Transform\Rector\ConstFetch\ConstFetchToClassConstFetchRector`](../rules/Transform/Rector/ConstFetch/ConstFetchToClassConstFetchRector.php)

```diff
-$x = CONTEXT_COURSE
+$x = course::LEVEL
```

<br>

### FuncCallToConstFetchRector

Changes use of function calls to use constants
Expand Down

0 comments on commit 74a7c51

Please sign in to comment.