File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public function __construct(
58
58
* Please note that this will reset the secret phrase stored with the authenticator instance
59
59
* if a different mode than the current is given.
60
60
*/
61
- public function setOptions (SettingsContainerInterface |AuthenticatorOptions $ options ):self {
61
+ public function setOptions (SettingsContainerInterface |AuthenticatorOptions $ options ):static {
62
62
$ this ->options = $ options ;
63
63
64
64
// invoke a new authenticator interface if necessary
@@ -77,7 +77,7 @@ public function setOptions(SettingsContainerInterface|AuthenticatorOptions $opti
77
77
*
78
78
* @codeCoverageIgnore
79
79
*/
80
- public function setSecret (#[SensitiveParameter] string $ encodedSecret ):self {
80
+ public function setSecret (#[SensitiveParameter] string $ encodedSecret ):static {
81
81
$ this ->authenticator ->setSecret ($ encodedSecret );
82
82
83
83
return $ this ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function __construct(SettingsContainerInterface|AuthenticatorOptions $opt
43
43
/**
44
44
* @inheritDoc
45
45
*/
46
- public function setOptions (SettingsContainerInterface $ options ):AuthenticatorInterface {
46
+ public function setOptions (SettingsContainerInterface $ options ):static {
47
47
$ this ->options = $ options ;
48
48
49
49
return $ this ;
@@ -52,7 +52,7 @@ public function setOptions(SettingsContainerInterface $options):AuthenticatorInt
52
52
/**
53
53
* @inheritDoc
54
54
*/
55
- public function setSecret (#[SensitiveParameter] string $ encodedSecret ):AuthenticatorInterface {
55
+ public function setSecret (#[SensitiveParameter] string $ encodedSecret ):static {
56
56
$ this ->secret = Base32::decode ($ this ->checkEncodedSecret ($ encodedSecret ));
57
57
58
58
return $ this ;
Original file line number Diff line number Diff line change @@ -42,14 +42,14 @@ interface AuthenticatorInterface{
42
42
/**
43
43
* Sets the options
44
44
*/
45
- public function setOptions (SettingsContainerInterface $ options ):AuthenticatorInterface ;
45
+ public function setOptions (SettingsContainerInterface $ options ):static ;
46
46
47
47
/**
48
48
* Sets a secret phrase from an encoded representation
49
49
*
50
50
* @throws \RuntimeException
51
51
*/
52
- public function setSecret (#[SensitiveParameter] string $ encodedSecret ):AuthenticatorInterface ;
52
+ public function setSecret (#[SensitiveParameter] string $ encodedSecret ):static ;
53
53
54
54
/**
55
55
* Returns an encoded representation of the current secret phrase
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ final class SteamGuard extends TOTP{
46
46
/**
47
47
* @inheritDoc
48
48
*/
49
- public function setSecret (#[SensitiveParameter] string $ encodedSecret ):AuthenticatorInterface {
49
+ public function setSecret (#[SensitiveParameter] string $ encodedSecret ):static {
50
50
$ this ->secret = Base64::decode ($ this ->checkEncodedSecret ($ encodedSecret ));
51
51
52
52
return $ this ;
You can’t perform that action at this time.
0 commit comments