-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #461 from doctrine/1.13.x
Merge 1.13.x up into 1.14.x
- Loading branch information
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
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
18 changes: 18 additions & 0 deletions
18
tests/Doctrine/Tests/Common/Annotations/Fixtures/AnnotationWithEnumProperty.php
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,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Doctrine\Tests\Common\Annotations\Fixtures; | ||
|
||
/** | ||
* @Annotation | ||
* @Target("ALL") | ||
* @NamedArgumentConstructor | ||
*/ | ||
final class AnnotationWithEnumProperty | ||
{ | ||
public function __construct( | ||
public readonly Suit $suit = Suit::Hearts, | ||
) { | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/Doctrine/Tests/Common/Annotations/Fixtures/ClassWithEnumAnnotations.php
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,14 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Doctrine\Tests\Common\Annotations\Fixtures; | ||
|
||
class ClassWithEnumAnnotations | ||
{ | ||
/** @AnnotationWithEnumProperty */ | ||
public mixed $annotationWithDefaults; | ||
|
||
/** @AnnotationWithEnumProperty(suit=Suit::Spades) */ | ||
public mixed $annotationWithSpades; | ||
} |
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,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Doctrine\Tests\Common\Annotations\Fixtures; | ||
|
||
enum Suit | ||
{ | ||
case Hearts; | ||
case Diamonds; | ||
case Clubs; | ||
case Spades; | ||
} |