Skip to content

Commit

Permalink
Add annotation re-print with colon and equal (#6042)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Apr 5, 2021
1 parent 0470456 commit 0067855
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
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
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

0 comments on commit 0067855

Please sign in to comment.