Skip to content

Commit

Permalink
Merge release 2.12.2 into 2.13.x (#9725)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed May 3, 2022
2 parents d7d6b9d + 8291a7f commit 05560f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"doctrine/collections": "^1.5",
"doctrine/common": "^3.0.3",
"doctrine/dbal": "^2.13.1 || ^3.2",
"doctrine/deprecations": "^0.5.3",
"doctrine/deprecations": "^0.5.3 || ^1",
"doctrine/event-manager": "^1.1",
"doctrine/inflector": "^1.4 || ^2.0",
"doctrine/instantiator": "^1.3",
Expand Down
5 changes: 3 additions & 2 deletions lib/Doctrine/ORM/Mapping/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,22 @@
* @Annotation
* @NamedArgumentConstructor()
* @Target("CLASS")
* @template T of object
*/
#[Attribute(Attribute::TARGET_CLASS)]
final class Entity implements Annotation
{
/**
* @var string|null
* @psalm-var class-string<EntityRepository>|null
* @psalm-var class-string<EntityRepository<T>>|null
*/
public $repositoryClass;

/** @var bool */
public $readOnly = false;

/**
* @psalm-param class-string<EntityRepository>|null $repositoryClass
* @psalm-param class-string<EntityRepository<T>>|null $repositoryClass
*/
public function __construct(?string $repositoryClass = null, bool $readOnly = false)
{
Expand Down

0 comments on commit 05560f2

Please sign in to comment.