-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #5548 NullableTypeDeclarationForDefaultNullValueFixer - fix handl…
…ing promoted properties (jrmajor, keradus) This PR was squashed before being merged into the 2.18 branch. Discussion ---------- NullableTypeDeclarationForDefaultNullValueFixer - fix handling promoted properties Fixes #5547 **Before:** ```diff public function __construct( - public ?array $x = null, - ?array $y = null, + public array $x = null, + array $y = null, ) { } ``` **After:** ```diff public function __construct( public ?array $x = null, - ?array $y = null, + array $y = null, ) { } ``` Commits ------- 077eb6a NullableTypeDeclarationForDefaultNullValueFixer - fix handling promoted properties
- Loading branch information
Showing
2 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
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