Skip to content

Commit

Permalink
use psalm dev branch
Browse files Browse the repository at this point in the history
  • Loading branch information
azjezz committed Dec 4, 2020
1 parent 0082c83 commit 1da118e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -23,7 +23,7 @@
"friendsofphp/php-cs-fixer": "^2.16",
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3.5",
"vimeo/psalm": "^4.3"
"vimeo/psalm": "dev-master"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 3 additions & 3 deletions src/Psl/Password/algorithms.php
Expand Up @@ -14,8 +14,8 @@
function algorithms(): array
{
return [
(string) BCRYPT_ALGORITHM,
(string) ARGON2I_ALGORITHM,
(string) ARGON2ID_ALGORITHM,
BCRYPT_ALGORITHM,
ARGON2I_ALGORITHM,
ARGON2ID_ALGORITHM,
];
}
3 changes: 2 additions & 1 deletion src/Psl/Password/get_information.php
Expand Up @@ -23,8 +23,9 @@
*/
function get_information(string $hash): array
{
/** @var array{algoName: string, options: array<string, array-key>} $information */
$information = password_get_info($hash);
$algorithm = (string)$information['algoName'];
$algorithm = $information['algoName'];
if (BCRYPT_ALGORITHM === $algorithm) {
return [
'algorithm' => $algorithm,
Expand Down

0 comments on commit 1da118e

Please sign in to comment.