mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-31 08:20:53 +00:00
[automated] Re-Generate Nodes/Rectors Documentation (#870)
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
This commit is contained in:
parent
97d3ad74ee
commit
95bf5aa61f
|
@ -1,4 +1,4 @@
|
|||
# 476 Rules Overview
|
||||
# 477 Rules Overview
|
||||
|
||||
<br>
|
||||
|
||||
|
@ -70,7 +70,7 @@
|
|||
|
||||
- [Php73](#php73) (9)
|
||||
|
||||
- [Php74](#php74) (14)
|
||||
- [Php74](#php74) (15)
|
||||
|
||||
- [Php80](#php80) (17)
|
||||
|
||||
|
@ -7446,6 +7446,23 @@ Change closure to arrow function
|
|||
|
||||
<br>
|
||||
|
||||
### CurlyToSquareBracketArrayStringRector
|
||||
|
||||
Change curly based array and string to square bracket
|
||||
|
||||
- class: [`Rector\Php74\Rector\ArrayDimFetch\CurlyToSquareBracketArrayStringRector`](../rules/Php74/Rector/ArrayDimFetch/CurlyToSquareBracketArrayStringRector.php)
|
||||
|
||||
```diff
|
||||
$string = 'test';
|
||||
-echo $string{0};
|
||||
+echo $string[0];
|
||||
$array = ['test'];
|
||||
-echo $array{0};
|
||||
+echo $array[0];
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### ExportToReflectionFunctionRector
|
||||
|
||||
Change `export()` to ReflectionFunction alternatives
|
||||
|
|
Loading…
Reference in New Issue
Block a user