Skip to content

Commit 87b3dfa

Browse files
committed
Add constant types
1 parent eb52014 commit 87b3dfa

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/Password.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,18 @@ class Password
2323
/**
2424
* Used to set operations or memory limit as interactive.
2525
* It enables the use of 2 CPU operations or 64 MB RAM.
26-
*
27-
* @var int
2826
*/
29-
public const LIMIT_INTERACTIVE = 0;
27+
public const int LIMIT_INTERACTIVE = 0;
3028
/**
3129
* Used to set operations or memory limit as moderate.
3230
* It enables the use of 3 CPU operations or 256 MB RAM.
33-
*
34-
* @var int
3531
*/
36-
public const LIMIT_MODERATE = 1;
32+
public const int LIMIT_MODERATE = 1;
3733
/**
3834
* Used to set operations or memory limit as sensitive.
3935
* It enables the use of 4 CPU operations or 1 GB RAM.
40-
*
41-
* @var int
4236
*/
43-
public const LIMIT_SENSITIVE = 2;
37+
public const int LIMIT_SENSITIVE = 2;
4438
protected static int $opsLimit = Password::LIMIT_INTERACTIVE;
4539
protected static int $memLimit = Password::LIMIT_INTERACTIVE;
4640

0 commit comments

Comments
 (0)