Skip to content

Commit

Permalink
Fix ecs tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Feb 25, 2024
1 parent 89f3e9e commit 76dfd23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"maglnet/composer-require-checker": "^4.7",
"phpunit/phpunit": "^10.5",
"roave/infection-static-analysis-plugin": "^1.34",
"symplify/easy-coding-standard": "^12.1",
"vimeo/psalm": "^5.20"
},
"autoload": {
Expand Down
6 changes: 3 additions & 3 deletions src/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ final class Password
* Generates user-friendly random password containing at least one lower case letter, one uppercase letter and one
* digit. The remaining characters in the password are chosen at random from those three sets
*
* @param int $length
* @param int $length The length of the password to generate.
*
* @return string
* @return string The generated password.
*/
public static function generate(int $length): string
{
Expand All @@ -35,7 +35,7 @@ public static function generate(int $length): string
$password = implode(
'',
array_map(
static fn (int $i) => $chars[random_int($i, $chars_length - $i)],
static fn(int $i) => $chars[random_int($i, $chars_length - $i)],
range(1, $length),
),
);
Expand Down

0 comments on commit 76dfd23

Please sign in to comment.