From d881a404bd5f196e5653ad90904e1ce36143bf33 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Fri, 3 Nov 2023 08:29:18 -0400 Subject: [PATCH] - Now allowing privilege from enums --- src/Attribute/Taxus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Attribute/Taxus.php b/src/Attribute/Taxus.php index da4a02b..dc5076f 100644 --- a/src/Attribute/Taxus.php +++ b/src/Attribute/Taxus.php @@ -5,7 +5,7 @@ namespace Notes\Security\Attribute; #[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)] class Taxus implements \Notes\Attribute { public function __construct( - public null|string $privilege = null, + public null|string|\BackedEnum $privilege = null, public null|string $module = null, ) {} }