mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-26 08:51:13 -06:00
Removed typehint making phpstan throw false positive
This commit is contained in:
parent
5361f33cc1
commit
ad906000c7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user