-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TypeDeclaration] Fix TypedPropertyFromStrictGetterMethodReturnTypeRe…
…ctor for default type (#3251)
- Loading branch information
1 parent
bebea61
commit bce8153
Showing
3 changed files
with
129 additions
and
59 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...ty/TypedPropertyFromStrictGetterMethodReturnTypeRector/Fixture/skip_default_value.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Property\TypedPropertyFromStrictGetterMethodReturnTypeRector\Fixture; | ||
|
||
final class SkipDefaultValue | ||
{ | ||
public $name = false; | ||
|
||
public function getName(): string|null | ||
{ | ||
return $this->name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters