Skip to content

Commit 855e29c

Browse files
[DependencyInjection] Properly declare #[When] as allowed on functions
1 parent dc25cfd commit 855e29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Attribute/When.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @author Nicolas Grekas <[email protected]>
1818
*/
19-
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
19+
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::TARGET_FUNCTION | \Attribute::IS_REPEATABLE)]
2020
class When
2121
{
2222
public function __construct(

0 commit comments

Comments
 (0)