Skip to content

Commit c038af4

Browse files
committed
[Validator] Constraints as php 8 Attributes.
1 parent 0b17675 commit c038af4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Annotation/Route.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Routing\Annotation;
1313

14-
use Attribute;
15-
1614
/**
1715
* Annotation class for @Route().
1816
*
@@ -22,7 +20,7 @@
2220
* @author Fabien Potencier <fabien@symfony.com>
2321
* @author Alexander M. Turek <me@derrabus.de>
2422
*/
25-
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
23+
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
2624
class Route
2725
{
2826
private $path;

0 commit comments

Comments
 (0)