Skip to content

Commit

Permalink
Import SensitiveParameter with use to satisfy the CodeSniffer
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Düsterhus <duesterhus@woltlab.com>
  • Loading branch information
TimWolla committed Aug 30, 2022
1 parent 3f39e3e commit e96352e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Laminas\Diactoros;

use Psr\Http\Message\UriInterface;
use SensitiveParameter;

use function array_keys;
use function explode;
Expand Down Expand Up @@ -238,7 +239,7 @@ public function withScheme($scheme): UriInterface
*/
public function withUserInfo(
$user,
#[\SensitiveParameter]
#[SensitiveParameter]
$password = null
): UriInterface {
if (! is_string($user)) {
Expand Down

0 comments on commit e96352e

Please sign in to comment.