Skip to content

Commit 4dfa8da

Browse files
fix(metadata): repeatable attribute mutators (#7542)
1 parent 5e2f729 commit 4dfa8da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Metadata/AsOperationMutator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace ApiPlatform\Metadata;
1515

16-
#[\Attribute(\Attribute::TARGET_CLASS)]
16+
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)]
1717
class AsOperationMutator
1818
{
1919
public function __construct(

src/Metadata/AsResourceMutator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace ApiPlatform\Metadata;
1515

16-
#[\Attribute(\Attribute::TARGET_CLASS)]
16+
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)]
1717
class AsResourceMutator
1818
{
1919
/**

0 commit comments

Comments
 (0)