File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,15 @@ class ArgonHasher implements HasherContract
29
29
protected $ threads = 2 ;
30
30
31
31
/**
32
- * Constructor .
32
+ * Create a new hasher instance .
33
33
*
34
- * @param array $options
34
+ * @param array $options
35
+ * @return void
35
36
*/
36
- public function __construct ($ options = null )
37
+ public function __construct (array $ options = [] )
37
38
{
38
- $ this ->memory = $ options ['memory ' ] ?? $ this ->memory ;
39
39
$ this ->time = $ options ['time ' ] ?? $ this ->time ;
40
+ $ this ->memory = $ options ['memory ' ] ?? $ this ->memory ;
40
41
$ this ->threads = $ options ['threads ' ] ?? $ this ->threads ;
41
42
}
42
43
Original file line number Diff line number Diff line change @@ -15,11 +15,12 @@ class BcryptHasher implements HasherContract
15
15
protected $ rounds = 10 ;
16
16
17
17
/**
18
- * Constructor .
18
+ * Create a new hasher instance .
19
19
*
20
- * @param array $options
20
+ * @param array $options
21
+ * @return void
21
22
*/
22
- public function __construct ($ options = null )
23
+ public function __construct (array $ options = [] )
23
24
{
24
25
$ this ->rounds = $ options ['rounds ' ] ?? $ this ->rounds ;
25
26
}
You can’t perform that action at this time.
0 commit comments