Skip to content

Commit

Permalink
Merge pull request #26 from haosheng0211/master
Browse files Browse the repository at this point in the history
feat: php8 attribute annotation
  • Loading branch information
qbhy committed Jun 5, 2022
2 parents 389483d + 34cf46a commit 4fc880b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Annotation/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*/
namespace Qbhy\HyperfAuth\Annotation;

use Attribute;
use Doctrine\Common\Annotations\Annotation\Target;
use Hyperf\Di\Annotation\AbstractAnnotation;

Expand All @@ -19,6 +20,7 @@
* @Target({"METHOD", "CLASS"})
* Class Auth
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS)]
class Auth extends AbstractAnnotation
{
/**
Expand Down

0 comments on commit 4fc880b

Please sign in to comment.