From 5183a51f6ba8e4c22d45223a99980c3260367219 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 24 Aug 2019 13:08:59 +0200 Subject: [PATCH] update docs --- docs/AllRectorsOverview.md | 41 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/docs/AllRectorsOverview.md b/docs/AllRectorsOverview.md index fee242759a7..86fd36951ce 100644 --- a/docs/AllRectorsOverview.md +++ b/docs/AllRectorsOverview.md @@ -1,4 +1,4 @@ -# All 334 Rectors Overview +# All 336 Rectors Overview - [Projects](#projects) - [General](#general) @@ -1687,6 +1687,22 @@ Remove empty method calls not required by parents
+### `RemoveNullPropertyInitializationRector` + +- class: `Rector\DeadCode\Rector\Property\RemoveNullPropertyInitializationRector` + +Remove initialization with null value from property declarations + +```diff + class SunshineCommand extends ParentClassWithNewConstructor + { +- private $myVar = null; ++ private $myVar; + } +``` + +
+ ### `RemoveOverriddenValuesRector` - class: `Rector\DeadCode\Rector\ClassMethod\RemoveOverriddenValuesRector` @@ -3271,6 +3287,27 @@ Adds default value for undefined variable
+### `AddLiteralSeparatorToNumberRector` + +- class: `Rector\Php\Rector\LNumber\AddLiteralSeparatorToNumberRector` + +Add "_" as thousands separator in numbers + +```diff + class SomeClass + { + public function run() + { +- $int = 1000; +- $float = 1000500.001; ++ $int = 1_000; ++ $float = 1_000_500.001; + } + } +``` + +
+ ### `ArrayKeyExistsOnPropertyRector` - class: `Rector\Php\Rector\FuncCall\ArrayKeyExistsOnPropertyRector` @@ -6443,7 +6480,7 @@ services: - class: `Rector\Rector\MethodCall\MethodCallToAnotherMethodCallWithArgumentsRector` -Turns old method call with specfici type to new one with arguments +Turns old method call with specific types to new one with arguments ```yaml services: