From ad906000c77eb5e4032492087e0eac1bd00caa8f Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 1 Nov 2019 10:04:25 +0100 Subject: [PATCH] Removed typehint making phpstan throw false positive --- module/Core/src/Util/TagManagerTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Core/src/Util/TagManagerTrait.php b/module/Core/src/Util/TagManagerTrait.php index 4fbfd288..f227afef 100644 --- a/module/Core/src/Util/TagManagerTrait.php +++ b/module/Core/src/Util/TagManagerTrait.php @@ -22,7 +22,7 @@ trait TagManagerTrait */ private function tagNamesToEntities(EntityManagerInterface $em, array $tags): Collections\Collection { - $entities = map($tags, function (string $tagName) use ($em): Tag { + $entities = map($tags, function (string $tagName) use ($em) { $tagName = $this->normalizeTagName($tagName); $tag = $em->getRepository(Tag::class)->findOneBy(['name' => $tagName]) ?? new Tag($tagName); $em->persist($tag);