@@ -39,7 +39,7 @@ class Authenticator{
3939 /**
4040 * Authenticator constructor
4141 */
42- public function __construct (SettingsContainerInterface $ options = null , string $ secret = null ){
42+ public function __construct (? SettingsContainerInterface $ options = null , ? string $ secret = null ){
4343 // phpcs:ignore
4444 $ this ->setOptions ($ options ?? new AuthenticatorOptions );
4545
@@ -95,7 +95,7 @@ public function getSecret():string{
9595 *
9696 * @codeCoverageIgnore
9797 */
98- public function createSecret (int $ length = null ):string {
98+ public function createSecret (? int $ length = null ):string {
9999 return $ this ->authenticator ->createSecret ($ length );
100100 }
101101
@@ -108,7 +108,7 @@ public function createSecret(int $length = null):string{
108108 *
109109 * @codeCoverageIgnore
110110 */
111- public function code (int $ data = null ):string {
111+ public function code (? int $ data = null ):string {
112112 return $ this ->authenticator ->code ($ data );
113113 }
114114
@@ -121,7 +121,7 @@ public function code(int $data = null):string{
121121 *
122122 * @codeCoverageIgnore
123123 */
124- public function verify (string $ otp , int $ data = null ):bool {
124+ public function verify (string $ otp , ? int $ data = null ):bool {
125125 return $ this ->authenticator ->verify ($ otp , $ data );
126126 }
127127
@@ -132,7 +132,7 @@ public function verify(string $otp, int $data = null):bool{
132132 *
133133 * @throws \InvalidArgumentException
134134 */
135- public function getUri (string $ label , string $ issuer , int $ hotpCounter = null , bool $ omitSettings = null ):string {
135+ public function getUri (string $ label , string $ issuer , ? int $ hotpCounter = null , ? bool $ omitSettings = null ):string {
136136 $ label = trim ($ label );
137137 $ issuer = trim ($ issuer );
138138
0 commit comments