Skip to content

Commit

Permalink
[automated] Re-Generate Nodes/Rectors Documentation (#1682)
Browse files Browse the repository at this point in the history
* [automated] Re-Generate Nodes/Rectors Documentation

* re-run composer docs

Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
  • Loading branch information
3 people committed Jan 16, 2022
1 parent 90cb1ad commit 4ac5dd6
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions build/target-repository/docs/rector_rules_overview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 516 Rules Overview
# 517 Rules Overview

<br>

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

- [Php80](#php80) (18)

- [Php81](#php81) (8)
- [Php81](#php81) (9)

- [PhpSpecToPHPUnit](#phpspectophpunit) (7)

Expand Down Expand Up @@ -379,7 +379,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {

### AbsolutizeRequireAndIncludePathRector

include/require to absolute path. This Rector might introduce backwards incompatible code, when the include/require being changed depends on the current working directory.
include/require to absolute path. This Rector might introduce backwards incompatible code, when the include/require beeing changed depends on the current working directory.

- class: [`Rector\CodeQuality\Rector\Include_\AbsolutizeRequireAndIncludePathRector`](../rules/CodeQuality/Rector/Include_/AbsolutizeRequireAndIncludePathRector.php)

Expand Down Expand Up @@ -434,7 +434,7 @@ Split 2 assigns ands to separate line

### ArrayKeyExistsTernaryThenValueToCoalescingRector

Change `array_key_exists()` ternary to coalescing
Change `array_key_exists()` ternary to coalesing

- class: [`Rector\CodeQuality\Rector\Ternary\ArrayKeyExistsTernaryThenValueToCoalescingRector`](../rules/CodeQuality/Rector/Ternary/ArrayKeyExistsTernaryThenValueToCoalescingRector.php)

Expand Down Expand Up @@ -1261,7 +1261,7 @@ Simplify array_search to in_array

### SimplifyBoolIdenticalTrueRector

Simplify bool value compare to true or false
Symplify bool value compare to true or false

- class: [`Rector\CodeQuality\Rector\Identical\SimplifyBoolIdenticalTrueRector`](../rules/CodeQuality/Rector/Identical/SimplifyBoolIdenticalTrueRector.php)

Expand Down Expand Up @@ -3349,7 +3349,7 @@ Remove unused parent call with no parent class

### RemovePhpVersionIdCheckRector

Remove unneeded PHP_VERSION_ID check
Remove unneded PHP_VERSION_ID check

:wrench: **configure it!**

Expand Down Expand Up @@ -5513,7 +5513,7 @@ change instanceof Object to is_resource

### DowngradePropertyPromotionRector

Change constructor property promotion to property assign
Change constructor property promotion to property asssign

- class: [`Rector\DowngradePhp80\Rector\Class_\DowngradePropertyPromotionRector`](../rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php)

Expand Down Expand Up @@ -8524,6 +8524,25 @@ Replace property declaration of new state with direct new

<br>

### NullToStrictStringFuncCallArgRector

Change null to strict string defined function call args

- class: [`Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector`](../rules/Php81/Rector/FuncCall/NullToStrictStringFuncCallArgRector.php)

```diff
class SomeClass
{
public function run()
{
- preg_split("#a#", null);
+ preg_split("#a#", '');
}
}
```

<br>

### Php81ResourceReturnToObjectRector

Change `is_resource()` to instanceof Object
Expand Down

0 comments on commit 4ac5dd6

Please sign in to comment.