Skip to content

Commit 15d0798

Browse files
committed
:octocat: remove deprecated parameter
1 parent fed5990 commit 15d0798

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/Authenticator.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,9 @@ public function verify(#[SensitiveParameter] string $otp, int|null $data = null)
133133
*
134134
* @link https://github.com/google/google-authenticator/wiki/Key-Uri-Format#parameters
135135
*
136-
* @deprecated 5.3.0 The parameter `$omitSettings` will be removed in favor of `AuthenticatorOptions::$omitUriSettings`
137-
* in the next major version (6.x)
138-
* @see \chillerlan\Authenticator\AuthenticatorOptionsTrait::$omitUriSettings
139-
*
140136
* @codeCoverageIgnore
141137
*/
142-
public function getUri(string $label, string $issuer, int|null $hotpCounter = null, bool|null $omitSettings = null):string{
143-
// a little reckless but good enough until the deprecated parameter is removed
144-
if($omitSettings !== null){
145-
$this->options->omitUriSettings = $omitSettings;
146-
}
147-
138+
public function getUri(string $label, string $issuer, int|null $hotpCounter = null):string{
148139
return $this->authenticator->getUri($label, $issuer, $hotpCounter);
149140
}
150141

0 commit comments

Comments
 (0)