From 96d2b42679fd0175f56962444b7f8604a2d3e1e3 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Tue, 13 Oct 2020 10:39:57 +0200 Subject: [PATCH] Update 2020-03-23-doctrine-entity-typed-properties-with-php74.md (#1065) With `@var Collection`, PhpStan gives me (on level 6) - see https://stackoverflow.com/a/64242837/1668200 > Property ... with generic interface Doctrine\Common\Collections\Collection does not specify its types: TKey, T --- .../2020-03-23-doctrine-entity-typed-properties-with-php74.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/blog/config/data/2020/2020-03-23-doctrine-entity-typed-properties-with-php74.md b/packages/blog/config/data/2020/2020-03-23-doctrine-entity-typed-properties-with-php74.md index e34a770bef4..952813d94ef 100644 --- a/packages/blog/config/data/2020/2020-03-23-doctrine-entity-typed-properties-with-php74.md +++ b/packages/blog/config/data/2020/2020-03-23-doctrine-entity-typed-properties-with-php74.md @@ -173,7 +173,7 @@ You might also use this PHPStan format, but I'm not sure how PHPStorm handles th /** * @ORM\OneToMany(targetEntity=Training::class, mappedBy="trainer") - * @var Collection|Trainer[] -+ * @var Collection ++ * @var Collection */ private Collection $trainings; ```