Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php81] Skip Doctrine ORM MappedSuperClass attribute on ReadOnlyPrope…
…rtyRector (#2712) * [Php81] Skip Doctrine ORM MappedSuperClass attribute on ReadOnlyPropertyRector * Fixed 🎉 * final touch: rename fixture
- Loading branch information
1 parent
bd4a732
commit ce22a82
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...hp81/Rector/Property/ReadOnlyPropertyRector/Fixture/skip_entity_mapped_superclass.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,17 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php81\Rector\Property\ReadOnlyPropertyRector\Fixture; | ||
|
||
use Doctrine\ORM\Mapping as ORM; | ||
|
||
#[ORM\MappedSuperclass] | ||
abstract class SkipEntityMappedSuperClass | ||
{ | ||
#[ORM\Column(type: 'string')] | ||
#[ORM\Id] | ||
private string $id; | ||
|
||
public function __construct(string $id) { | ||
$this->id = $id; | ||
} | ||
} |
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