-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy subtype phpdoc on ClassPropertyAssignToConstructorPromotionRecto…
…r (#8438) (#5603) * Copy subtype phpdoc on ClassPropertyAssignToConstructorPromotionRector (#8438) * Apply suggestions from code review Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com> --------- Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
- Loading branch information
1 parent
6980dc6
commit df8d2b7
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...assPropertyAssignToConstructorPromotionRector/Fixture/copy_integer_range_type_doc.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,32 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector\Fixture; | ||
|
||
class CopyIntegerRangeType | ||
{ | ||
/** @var positive-int */ | ||
public int $count; | ||
|
||
public function __construct(int $count) | ||
{ | ||
$this->count = $count; | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector\Fixture; | ||
|
||
class CopyIntegerRangeType | ||
{ | ||
public function __construct( | ||
/** @var positive-int */ | ||
public int $count | ||
) | ||
{ | ||
} | ||
} | ||
|
||
?> |
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