[automated] Re-Generate Nodes/Rectors Documentation (#1325)

Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
This commit is contained in:
Tomas Votruba 2021-11-28 03:19:22 +03:00 committed by GitHub
parent 3844627c63
commit a8a2577c40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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