diff --git a/build/target-repository/docs/rector_rules_overview.md b/build/target-repository/docs/rector_rules_overview.md index ff3597a696c..ae21ee1add6 100644 --- a/build/target-repository/docs/rector_rules_overview.md +++ b/build/target-repository/docs/rector_rules_overview.md @@ -1,4 +1,4 @@ -# 512 Rules Overview +# 513 Rules Overview
@@ -6,7 +6,7 @@ - [Arguments](#arguments) (5) -- [CodeQuality](#codequality) (72) +- [CodeQuality](#codequality) (73) - [CodingStyle](#codingstyle) (35) @@ -915,6 +915,25 @@ Change inline if to explicit if
+### 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; + } + } +``` + +
+ ### IntvalToTypeCastRector Change `intval()` to faster and readable (int) `$value`