Skip to content

Commit

Permalink
Add failing test fixture for AnnotationToAttributeRector (#225)
Browse files Browse the repository at this point in the history
Based on https://getrector.org/demo/4c7348a5-8a07-4f85-aa4d-e462f672dae8

Co-authored-by: Stephan Vierkant <stephan@vierkant.net>
  • Loading branch information
TomasVotruba and stephanvierkant committed Jun 14, 2021
1 parent c8900bf commit 01a0660
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace Rector\Php80\Tests\Rector\Class_\AnnotationToAttributeRector\Fixture;

use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Table;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;

/**
* @UniqueEntity(
* fields={"parent", "code"},
* errorPath="code",
* message="Already exists!",
* ignoreNull=false,
* groups={"default", "update"}
* )
*/
#[Table('Foo')]
#[Entity]
class Foo
{
}

0 comments on commit 01a0660

Please sign in to comment.