-
-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php80] Handle Call to a member function getOriginalValues() on strin…
…g on AnnotationToAttributeRector (#1099) * [Php80] Handle sCall to a member function getOriginalValues() on string on AnnotationToAttributeRector * debug * [ci-review] Rector Rectify * update * Fixed 🎉 * [ci-review] Rector Rectify * [ci-review] Rector Rectify * phpstan * phpstan * cs fix Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
0db02e2
commit 87f6d1b
Showing
3 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...s/Php80/Rector/Class_/AnnotationToAttributeRector/Fixture/string_annotation_value.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,30 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\Class_\AnnotationToAttributeRector\Fixture; | ||
|
||
use Doctrine\ORM\Mapping as ORM; | ||
|
||
/** | ||
* @ORM\Table(name=App\Entity\Aktenzeichen::TABLE_NAME, uniqueConstraints={@ORM\UniqueConstraint(name="aktenzeichen_idx", columns={"aktenzeichen"})}) | ||
* @ORM\Entity | ||
*/ | ||
class StringAnnotationValue | ||
{ | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\Class_\AnnotationToAttributeRector\Fixture; | ||
|
||
use Doctrine\ORM\Mapping as ORM; | ||
|
||
#[\Doctrine\ORM\Mapping\Table(name: App\Entity\Aktenzeichen::TABLE_NAME)] | ||
#[\Doctrine\ORM\Mapping\UniqueConstraint(name: 'aktenzeichen_idx', columns: ['aktenzeichen'])] | ||
#[\Doctrine\ORM\Mapping\Entity] | ||
class StringAnnotationValue | ||
{ | ||
} | ||
|
||
?> |
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