Skip to content

Commit 9dded72

Browse files
committed
[Validator] Constraints as php 8 Attributes.
1 parent 50c6810 commit 9dded72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Attribute/CurrentUser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@
1111

1212
namespace Symfony\Component\Security\Http\Attribute;
1313

14-
use Attribute;
1514
use Symfony\Component\HttpKernel\Attribute\ArgumentInterface;
1615

1716
/**
1817
* Indicates that a controller argument should receive the current logged user.
1918
*/
20-
#[Attribute(Attribute::TARGET_PARAMETER)]
19+
#[\Attribute(\Attribute::TARGET_PARAMETER)]
2120
class CurrentUser implements ArgumentInterface
2221
{
2322
}

0 commit comments

Comments
 (0)