Skip to content

Commit 0c2a55a

Browse files
assert6limingxinleo
authored andcommitted
php8 attribute annotation
1 parent 8e89aa7 commit 0c2a55a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Annotation/AsyncQueueMessage.php

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

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

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

0 commit comments

Comments
 (0)