Skip to content

Commit ccbac60

Browse files
assert6limingxinleo
authored andcommitted
php8 attribute annotation
1 parent bc14c4d commit ccbac60

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Annotation/Trace.php

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

14+
use Attribute;
1415
use Doctrine\Common\Annotations\Annotation\Target;
1516
use Hyperf\Di\Annotation\AbstractAnnotation;
1617

1718
/**
1819
* @Annotation
1920
* @Target({"CLASS", "METHOD"})
2021
*/
22+
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
2123
class Trace extends AbstractAnnotation
2224
{
2325
/**

0 commit comments

Comments
 (0)