Skip to content

Commit

Permalink
Merge pull request #9708 from michnovka/2.12.x-fix-psalm-repository
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed May 2, 2022
2 parents 5209184 + a8425a5 commit 26e274e
Showing 1 changed file with 3 additions and 2 deletions.
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 26e274e

Please sign in to comment.