Skip to content

Commit 522e3c0

Browse files
committed
Fix bug on generate tag group command
1 parent 833de03 commit 522e3c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Console/Commands/GenerateTagGroup.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ public function handle()
1818
{
1919
$groupName = $this->argument('group');
2020

21-
$tagGroup = new ${TaggingUtility::tagGroupModelString()};
21+
$tagGroupModel = TaggingUtility::tagGroupModelString();
22+
23+
$tagGroup = new $tagGroupModel();
2224
$tagGroup->name = $groupName;
2325
$tagGroup->slug = TaggingUtility::normalize($groupName);
2426

0 commit comments

Comments
 (0)