[automated] Re-Generate Nodes/Rectors Documentation (#4759)

Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2020-12-03 09:32:04 +01:00 committed by GitHub
parent 4bf25404e1
commit 1dc13433a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
# 627 Rules Overview
# 628 Rules Overview
<br>
@ -34,7 +34,7 @@
- [DowngradePhp73](#downgradephp73) (2)
- [DowngradePhp74](#downgradephp74) (7)
- [DowngradePhp74](#downgradephp74) (8)
- [DowngradePhp80](#downgradephp80) (6)
@ -5289,6 +5289,35 @@ Replace array spread with `array_merge` function
<br>
### DowngradeCovarianReturnTypeRector
Make method return same type as parent
- class: `Rector\DowngradePhp74\Rector\ClassMethod\DowngradeCovarianReturnTypeRector`
```diff
class ParentType {}
class ChildType extends ParentType {}
class A
{
public function covariantReturnTypes(): ParentType
{ /* … */ }
}
class B extends A
{
- public function covariantReturnTypes(): ChildType
+ /**
+ * @return ChildType
+ */
+ public function covariantReturnTypes(): ParentType
{ /* … */ }
}
```
<br>
### DowngradeNullCoalescingOperatorRector
Remove null coalescing operator ??=