mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-28 23:10:51 +00:00
Update rector_rules_overview.md (#2082)
* Update rector_rules_overview.md * Update TypedPropertyFromStrictGetterMethodReturnTypeRector.php
This commit is contained in:
parent
73bf29c279
commit
6cb95c1be3
|
@ -12002,7 +12002,7 @@ Complete property type based on getter strict types
|
|||
final class SomeClass
|
||||
{
|
||||
- public $name;
|
||||
+ public ?string $name;
|
||||
+ public ?string $name = null;
|
||||
|
||||
public function getName(): string|null
|
||||
{
|
||||
|
|
|
@ -55,7 +55,7 @@ CODE_SAMPLE
|
|||
<<<'CODE_SAMPLE'
|
||||
final class SomeClass
|
||||
{
|
||||
public ?string $name;
|
||||
public ?string $name = null;
|
||||
|
||||
public function getName(): string|null
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user