Skip to content

Commit

Permalink
Fix PHPStan findings at `UserBasedTimezoneDetectorTest::testUserTimez…
Browse files Browse the repository at this point in the history
…oneDetection()`
  • Loading branch information
phansys committed Dec 17, 2023
1 parent 302aef7 commit 1ec6c08
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tests/Timezone/UserBasedTimezoneDetectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,26 @@ public function __construct(?string $timezone)
$this->timezone = $timezone;
}

/**
* @todo: Remove this method when support for "symfony/security" < 6.0 is dropped.
*/
public function getPassword(): ?string
{
return null;
$values = ['password', null];
$key = array_rand($values);

return $values[$key];
}

/**
* @todo: Remove this method when support for "symfony/security" < 6.0 is dropped.
*/
public function getSalt(): ?string
{
return null;
$values = ['salt', null];
$key = array_rand($values);

return $values[$key];
}

public function getUsername(): string
Expand Down

0 comments on commit 1ec6c08

Please sign in to comment.