-
-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add annotation re-print with colon and equal (#6042)
- Loading branch information
1 parent
0470456
commit 0067855
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
...tterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/DoctrineColumnWithColon.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,19 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; | ||
|
||
use Doctrine\ORM\Mapping\Column; | ||
|
||
final class DoctrineColumnWithColon | ||
{ | ||
/** | ||
* @Column(type="string", length=2, options={"fixed":true, "comment":"Initial letters of first and last name"}) | ||
*/ | ||
public $someProperty; | ||
} | ||
|
||
?> | ||
----- | ||
PhpParser\Node\Stmt\Property | ||
----- | ||
Doctrine\ORM\Mapping\Column |
19 changes: 19 additions & 0 deletions
19
...tterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/DoctrineColumnWithEqual.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,19 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; | ||
|
||
use Doctrine\ORM\Mapping\Column; | ||
|
||
final class DoctrineColumnWithEqual | ||
{ | ||
/** | ||
* @Column(type="string", length=2, options={"fixed"=true, "comment" = "Initial letters of first and last name"}) | ||
*/ | ||
public $someProperty; | ||
} | ||
|
||
?> | ||
----- | ||
PhpParser\Node\Stmt\Property | ||
----- | ||
Doctrine\ORM\Mapping\Column |