Skip to content

Commit

Permalink
update DOCS
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jan 8, 2019
1 parent bb8652a commit 40444ca
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions docs/AllRectorsOverview.md
Original file line number Diff line number Diff line change
Expand Up @@ -1540,20 +1540,6 @@ String cannot be turned into array by assignment anymore

<br>

### `NullCoalescingOperatorRector`

- class: `Rector\Php\Rector\Assign\NullCoalescingOperatorRector`

Use null coalescing operator ??=

```diff
$array = [];
-$array['user_id'] = $array['user_id'] ?? 'value';
+$array['user_id'] ??= 'value';
```

<br>

### `MysqlAssignToMysqliRector`

- class: `Rector\Php\Rector\Assign\MysqlAssignToMysqliRector`
Expand Down Expand Up @@ -2058,7 +2044,7 @@ Changes property `@var` annotations from annotation to type.

- class: `Rector\Php\Rector\FunctionLike\ReturnTypeDeclarationRector`

Change @return types to scalar typehints if not a BC-break
Change @return types and type from static analysis to type declarations if not a BC-break

```diff
<?php
Expand All @@ -2081,7 +2067,7 @@ Change @return types to scalar typehints if not a BC-break

- class: `Rector\Php\Rector\FunctionLike\ParamTypeDeclarationRector`

Change @param types to scalar typehints if not a BC-break
Change @param types to type declarations if not a BC-break

```diff
<?php
Expand Down

0 comments on commit 40444ca

Please sign in to comment.