From 59f37226ee5b3e84db5efbc5905bd6e60461fa1c Mon Sep 17 00:00:00 2001 From: Sipachev Igor Date: Mon, 23 Aug 2021 12:39:41 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BE=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=B0=D1=82=D1=80=D0=B8=D0=B1=D1=83=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Attribute/DTOMeta.php | 4 ++-- src/Attribute/HandleTags.php | 2 +- src/Attribute/PropertyPath.php | 4 ++-- src/Attribute/VirtualProperty.php | 4 ++-- src/Transformer/Meta.php | 4 ++-- src/Transformer/Trim.php | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) 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 +}