Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 997f2b5

Browse files
committed
[Php80] Rollback preserver int key defined Fixture on AnnotationToAttributeRector
1 parent a33b200 commit 997f2b5

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/Fixture/Doctrine/preserve_int_key_defined.php.inc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ namespace Rector\Tests\Php80\Rector\Class_\AnnotationToAttributeRector\Fixture\D
55
use Doctrine\ORM\Mapping as ORM;
66

77
/**
8-
* @ORM\DiscriminatorMap({
9-
* "cost" = "CostEntity",
10-
* "product" = "ProductEntity",
11-
* })
8+
* @ORM\DiscriminatorMap({ "1" = "CostDetailEntity" })
129
*/
1310
class PreserveIntKeyDefined
1411
{
@@ -22,7 +19,7 @@ namespace Rector\Tests\Php80\Rector\Class_\AnnotationToAttributeRector\Fixture\D
2219

2320
use Doctrine\ORM\Mapping as ORM;
2421

25-
#[ORM\DiscriminatorMap(['cost' => 'CostEntity', 'product' => 'ProductEntity'])]
22+
#[ORM\DiscriminatorMap([1 => 'CostDetailEntity'])]
2623
class PreserveIntKeyDefined
2724
{
2825
}

0 commit comments

Comments
 (0)