Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unique PHP 8.1 constraints (#5612)
* add unique PHP 8.1 constraints * [ci-review] Rector Rectify * Fix * Fix * ensure trim space * Fix --------- Co-authored-by: GitHub Action <actions@github.com> Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
- Loading branch information
1 parent
7de77e5
commit 7afec9a
Showing
4 changed files
with
61 additions
and
9 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...s/Php80/Rector/Class_/AnnotationToAttributeRector/FixturePhp81/unique_constraints.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,26 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\Class_\AnnotationToAttributeRector\FixturePhp81; | ||
|
||
/** | ||
* @\Doctrine\ORM\Mapping\Table(uniqueConstraints={ | ||
* @\Doctrine\ORM\Mapping\UniqueConstraint(name="some_key") | ||
* }) | ||
*/ | ||
final class UniqueConstraints | ||
{ | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\Class_\AnnotationToAttributeRector\FixturePhp81; | ||
|
||
#[\Doctrine\ORM\Mapping\Table] | ||
#[\Doctrine\ORM\Mapping\UniqueConstraint(name: 'some_key')] | ||
final class UniqueConstraints | ||
{ | ||
} | ||
|
||
?> |
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
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
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