Skip to content

Commit

Permalink
Merge pull request #1481 from bakaphp/hotfix-create-tags
Browse files Browse the repository at this point in the history
refact: create tags
  • Loading branch information
kaioken committed Jun 11, 2024
2 parents 871a410 + 95c892e commit 004347c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Domains/Social/Tags/Actions/CreateTagAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

class CreateTagAction
{
public function __construct(private TagData $tagData)
{
public function __construct(
protected TagData $tagData
) {
}

public function execute(): Tag
Expand Down
2 changes: 1 addition & 1 deletion src/Domains/Social/Tags/DataTransferObjects/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct(
public Companies $company,
public string $name,
public ?string $slug = null,
public ?int $weight = null
public int $weight = 0
) {
}
}

0 comments on commit 004347c

Please sign in to comment.