Update rector_rules_overview.md (#2082)

* Update rector_rules_overview.md

* Update TypedPropertyFromStrictGetterMethodReturnTypeRector.php
This commit is contained in:
javaDeveloperKid 2022-04-16 18:31:19 +02:00 committed by GitHub
parent 73bf29c279
commit 6cb95c1be3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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
{

View File

@ -55,7 +55,7 @@ CODE_SAMPLE
<<<'CODE_SAMPLE'
final class SomeClass
{
public ?string $name;
public ?string $name = null;
public function getName(): string|null
{