mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Removed typehint making phpstan throw false positive
This commit is contained in:
parent
5361f33cc1
commit
ad906000c7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue