diff --git a/src/Attribute/DTOMeta.php b/src/Attribute/DTOMeta.php index 4e978c3..d176384 100644 --- a/src/Attribute/DTOMeta.php +++ b/src/Attribute/DTOMeta.php @@ -2,7 +2,7 @@ namespace Rinsvent\Data2DTO\Attribute; -#[\Attribute] +#[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)] class DTOMeta { public function __construct( @@ -10,4 +10,4 @@ class DTOMeta /** @var string[] $tags */ public array $tags = ['default'] ) {} -} \ No newline at end of file +} diff --git a/src/Attribute/HandleTags.php b/src/Attribute/HandleTags.php index b44b9f3..21f6c13 100644 --- a/src/Attribute/HandleTags.php +++ b/src/Attribute/HandleTags.php @@ -2,7 +2,7 @@ namespace Rinsvent\Data2DTO\Attribute; -#[\Attribute] +#[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)] class HandleTags { public function __construct( diff --git a/src/Attribute/PropertyPath.php b/src/Attribute/PropertyPath.php index 39fa929..da2b7aa 100644 --- a/src/Attribute/PropertyPath.php +++ b/src/Attribute/PropertyPath.php @@ -2,7 +2,7 @@ namespace Rinsvent\Data2DTO\Attribute; -#[\Attribute] +#[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)] class PropertyPath { public function __construct( @@ -10,4 +10,4 @@ class PropertyPath /** @var string[] $tags */ public array $tags = ['default'] ) {} -} \ No newline at end of file +} diff --git a/src/Attribute/VirtualProperty.php b/src/Attribute/VirtualProperty.php index 8304575..5ca80f9 100644 --- a/src/Attribute/VirtualProperty.php +++ b/src/Attribute/VirtualProperty.php @@ -3,10 +3,10 @@ namespace Rinsvent\Data2DTO\Attribute; /** @property string[] $tags */ -#[\Attribute] +#[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)] class VirtualProperty { public function __construct( public array $tags = ['default'] ) {} -} \ No newline at end of file +} diff --git a/src/Transformer/Meta.php b/src/Transformer/Meta.php index ec834a6..ea4cedb 100644 --- a/src/Transformer/Meta.php +++ b/src/Transformer/Meta.php @@ -2,7 +2,7 @@ namespace Rinsvent\Data2DTO\Transformer; -#[\Attribute] +#[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)] abstract class Meta { public const TYPE = 'simple'; @@ -12,4 +12,4 @@ abstract class Meta public function __construct( public array $tags = ['default'] ) {} -} \ No newline at end of file +} diff --git a/src/Transformer/Trim.php b/src/Transformer/Trim.php index 70e6202..f0f3396 100644 --- a/src/Transformer/Trim.php +++ b/src/Transformer/Trim.php @@ -2,7 +2,7 @@ namespace Rinsvent\Data2DTO\Transformer; -#[\Attribute] +#[\Attribute(\Attribute::IS_REPEATABLE|\Attribute::TARGET_ALL)] class Trim extends Meta { public function __construct( @@ -11,4 +11,4 @@ class Trim extends Meta ) { parent::__construct(...func_get_args()); } -} \ No newline at end of file +}