mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-31 16:30:51 +00:00
[automated] Re-Generate Nodes/Rectors Documentation (#1325)
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
This commit is contained in:
parent
3844627c63
commit
a8a2577c40
|
@ -1,4 +1,4 @@
|
|||
# 501 Rules Overview
|
||||
# 502 Rules Overview
|
||||
|
||||
<br>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
|||
|
||||
- [Carbon](#carbon) (2)
|
||||
|
||||
- [CodeQuality](#codequality) (69)
|
||||
- [CodeQuality](#codequality) (70)
|
||||
|
||||
- [CodingStyle](#codingstyle) (37)
|
||||
|
||||
|
@ -1247,6 +1247,19 @@ Remove `sprintf()` wrapper if not needed
|
|||
|
||||
<br>
|
||||
|
||||
### ReplaceMultipleBooleanNotRector
|
||||
|
||||
Replace the Double not operator (!!) by type-casting to boolean
|
||||
|
||||
- class: [`Rector\CodeQuality\Rector\BooleanNot\ReplaceMultipleBooleanNotRector`](../rules/CodeQuality/Rector/BooleanNot/ReplaceMultipleBooleanNotRector.php)
|
||||
|
||||
```diff
|
||||
-$bool = !!$var;
|
||||
+$bool = (bool) $var;
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### SetTypeToCastRector
|
||||
|
||||
Changes `settype()` to (type) where possible
|
||||
|
|
Loading…
Reference in New Issue
Block a user