Skip to content

Commit

Permalink
[automated] Re-Generate Nodes/Rectors Documentation (#2385)
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 May 29, 2022
1 parent 012e9ad commit 9cd69c2
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions build/target-repository/docs/rector_rules_overview.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# 512 Rules Overview
# 513 Rules Overview

<br>

## Categories

- [Arguments](#arguments) (5)

- [CodeQuality](#codequality) (72)
- [CodeQuality](#codequality) (73)

- [CodingStyle](#codingstyle) (35)

Expand Down Expand Up @@ -915,6 +915,25 @@ Change inline if to explicit if

<br>

### InlineIsAInstanceOfRector

Change `is_a()` with object and class name check to instanceof

- class: [`Rector\CodeQuality\Rector\FuncCall\InlineIsAInstanceOfRector`](../rules/CodeQuality/Rector/FuncCall/InlineIsAInstanceOfRector.php)

```diff
class SomeClass
{
public function run(object $object)
{
- return is_a($object, SomeType::class);
+ return $object instanceof SomeType;
}
}
```

<br>

### IntvalToTypeCastRector

Change `intval()` to faster and readable (int) `$value`
Expand Down

0 comments on commit 9cd69c2

Please sign in to comment.