-
-
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.
[Php80] Copy array generic doc on ClassPropertyAssignToConstructorPro…
…motionRector (#988) Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
90c1d09
commit 26ac103
Showing
3 changed files
with
60 additions
and
6 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
40 changes: 40 additions & 0 deletions
40
...s_/ClassPropertyAssignToConstructorPromotionRector/Fixture/copy_array_generic_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,40 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace Rector\Tests\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector\Fixture; | ||
|
||
final class CopyArrayGenericDoc | ||
{ | ||
/** | ||
* Comment | ||
* @var array<string, string> | ||
*/ | ||
private array $map; | ||
|
||
public function __construct(array $map) | ||
{ | ||
$this->map = $map; | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php declare(strict_types = 1); | ||
|
||
namespace Rector\Tests\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector\Fixture; | ||
|
||
final class CopyArrayGenericDoc | ||
{ | ||
/** | ||
* @param array<string, string> $map | ||
*/ | ||
public function __construct( | ||
/** | ||
* Comment | ||
*/ | ||
private array $map | ||
) | ||
{ | ||
} | ||
} | ||
|
||
?> |
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