File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/Ubiquity/attributes/items/acl Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1313 * - #[Permission("permissionName",permissionLevel)]
1414 * - #[Permission(name: "permissionName")]
1515 * - #[Permission(name: "permissionName",level: permissionLevel)]
16+ * - #[Permission(permissionLevel)]
1617 *
1718 * @author jc
1819 * @version 1.0.0
2122class Permission extends BaseAttribute {
2223 use BaseAnnotationTrait;
2324
24- public string $ name ;
25+ public string | int $ name ;
2526
2627 public ?int $ level ;
2728
2829 /**
2930 * Permission constructor.
30- * @param string $name
31+ * @param string|int $name
3132 * @param int|null $level
3233 */
33- public function __construct (string $ name , ?int $ level = 0 ) {
34+ public function __construct (string | int $ name , ?int $ level = 0 ) {
3435 $ this ->name = $ name ;
3536 $ this ->level = $ level ;
3637 }
You can’t perform that action at this time.
0 commit comments