Skip to content

Commit 571041c

Browse files
Merge branch '5.4' into 6.0
* 5.4: [DependencyInjection] Properly declare #[When] as allowed on functions [VarDumper] Fix dumping floats on PHP8 Fix dumping enums on PHP 8.2 [Cache] Prevent fatal errors on php 8 when running concurrently with TagAwareAdapter v6.1
2 parents 8a3fd74 + 855e29c commit 571041c

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 <p@tchwork.com>
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)