mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 17:44:44 +08:00
Improved public API in Tag entity, avoiding anemic model
This commit is contained in:
@@ -53,7 +53,7 @@ class ListTagsCommand extends Command
|
||||
}
|
||||
|
||||
return array_map(function (Tag $tag) {
|
||||
return [$tag->getName()];
|
||||
return [(string) $tag];
|
||||
}, $tags);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user