Skip to content

Commit

Permalink
Fix const declaration for php 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiGa committed Aug 12, 2024
1 parent ef1d224 commit a36842a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions classes/local/userinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@
class userinfo {

/** @var int Constant identifying the basic role */
public const int ROLE_BASIC = 1;
public const ROLE_BASIC = 1;

/** @var int Constant identifying the extended role */
public const int ROLE_EXTENDED = 2;
public const ROLE_EXTENDED = 2;

/** @var int Constant identifying the unlimited role */
public const int ROLE_UNLIMITED = 3;
public const ROLE_UNLIMITED = 3;

/** @var int This is not really a role, but is being used to signal that the default role for a user should be assigned. */
public const int ROLE_DEFAULT = -1;
public const ROLE_DEFAULT = -1;

/** @var false|stdClass The database record or false if there is none (yet) */
private false|stdClass $record;
Expand Down
10 changes: 5 additions & 5 deletions classes/local/userusage.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@
class userusage {

/** @var int Constant for defining what means if a user can do unlimited requests */
public const int UNLIMITED_REQUESTS_PER_USER = 999999;
public const UNLIMITED_REQUESTS_PER_USER = 999999;

/** @var int Constant for defining the default period until the requests of the users are being reset */
public const int MAX_REQUESTS_DEFAULT_PERIOD = DAYSECS;
public const MAX_REQUESTS_DEFAULT_PERIOD = DAYSECS;

/**
* @var int Constant for defining the minimum period the tenant manager can select until
* the user usage information is being reset.
*/
public const int MAX_REQUESTS_MIN_PERIOD = HOURSECS;
public const MAX_REQUESTS_MIN_PERIOD = HOURSECS;

/** @var int The default value for the max requests for the basic role */
public const int MAX_REQUESTS_DEFAULT_ROLE_BASE = 10;
public const MAX_REQUESTS_DEFAULT_ROLE_BASE = 10;

/** @var int The default value for the max requests for the extended role */
public const int MAX_REQUESTS_DEFAULT_ROLE_EXTENDED = 50;
public const MAX_REQUESTS_DEFAULT_ROLE_EXTENDED = 50;

/** @var false|stdClass The database record or false if none exists (yet) */
private false|stdClass $record;
Expand Down

0 comments on commit a36842a

Please sign in to comment.