diff --git a/src/Domains/Social/Tags/Actions/CreateTagAction.php b/src/Domains/Social/Tags/Actions/CreateTagAction.php index d9829b0a5..2b10c29ea 100644 --- a/src/Domains/Social/Tags/Actions/CreateTagAction.php +++ b/src/Domains/Social/Tags/Actions/CreateTagAction.php @@ -9,8 +9,9 @@ class CreateTagAction { - public function __construct(private TagData $tagData) - { + public function __construct( + protected TagData $tagData + ) { } public function execute(): Tag diff --git a/src/Domains/Social/Tags/DataTransferObjects/Tag.php b/src/Domains/Social/Tags/DataTransferObjects/Tag.php index 26578b56e..dd41a0fd9 100644 --- a/src/Domains/Social/Tags/DataTransferObjects/Tag.php +++ b/src/Domains/Social/Tags/DataTransferObjects/Tag.php @@ -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 ) { } }