File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,14 +29,15 @@ class ArgonHasher implements HasherContract
2929 protected $ threads = 2 ;
3030
3131 /**
32- * Constructor .
32+ * Create a new hasher instance .
3333 *
34- * @param array $options
34+ * @param array $options
35+ * @return void
3536 */
36- public function __construct ($ options = null )
37+ public function __construct (array $ options = [] )
3738 {
38- $ this ->memory = $ options ['memory ' ] ?? $ this ->memory ;
3939 $ this ->time = $ options ['time ' ] ?? $ this ->time ;
40+ $ this ->memory = $ options ['memory ' ] ?? $ this ->memory ;
4041 $ this ->threads = $ options ['threads ' ] ?? $ this ->threads ;
4142 }
4243
Original file line number Diff line number Diff line change @@ -15,11 +15,12 @@ class BcryptHasher implements HasherContract
1515 protected $ rounds = 10 ;
1616
1717 /**
18- * Constructor .
18+ * Create a new hasher instance .
1919 *
20- * @param array $options
20+ * @param array $options
21+ * @return void
2122 */
22- public function __construct ($ options = null )
23+ public function __construct (array $ options = [] )
2324 {
2425 $ this ->rounds = $ options ['rounds ' ] ?? $ this ->rounds ;
2526 }
You can’t perform that action at this time.
0 commit comments