Skip to content

Commit 196a2d1

Browse files
assert6limingxinleo
authored andcommitted
php8 attribute annotation
1 parent 0464ccf commit 196a2d1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Annotation/Command.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@
1111
*/
1212
namespace Hyperf\Command\Annotation;
1313

14+
use Attribute;
1415
use Hyperf\Di\Annotation\AbstractAnnotation;
1516

1617
/**
1718
* @Annotation
1819
* @Target({"CLASS"})
1920
*/
21+
#[Attribute(Attribute::TARGET_CLASS)]
2022
class Command extends AbstractAnnotation
2123
{
2224
}

0 commit comments

Comments
 (0)