Skip to content

Commit

Permalink
Upgrade PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Dec 26, 2022
1 parent 32b95f1 commit 6e96e74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"aplus/coding-standard": "^1.14",
"ergebnis/composer-normalize": "^2.15",
"phpmd/phpmd": "^2.13",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^9.5"
},
"minimum-stability": "dev",
Expand Down
8 changes: 4 additions & 4 deletions src/Sign.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function makeKeyPair() : string
*/
public static function makeSecretKey(string $keyPair) : string
{
return \sodium_crypto_sign_secretkey($keyPair);
return \sodium_crypto_sign_secretkey($keyPair); // @phpstan-ignore-line
}

/**
Expand All @@ -59,7 +59,7 @@ public static function makeSecretKey(string $keyPair) : string
*/
public static function makePublicKey(string $keyPair) : string
{
return \sodium_crypto_sign_publickey($keyPair);
return \sodium_crypto_sign_publickey($keyPair); // @phpstan-ignore-line
}

/**
Expand All @@ -76,7 +76,7 @@ public static function makePublicKey(string $keyPair) : string
*/
public static function signature(string $message, string $secretKey) : string
{
return \sodium_crypto_sign_detached($message, $secretKey);
return \sodium_crypto_sign_detached($message, $secretKey); // @phpstan-ignore-line
}

/**
Expand All @@ -98,6 +98,6 @@ public static function verify(
string $signature,
string $publicKey
) : bool {
return \sodium_crypto_sign_verify_detached($signature, $message, $publicKey);
return \sodium_crypto_sign_verify_detached($signature, $message, $publicKey); // @phpstan-ignore-line
}
}

0 comments on commit 6e96e74

Please sign in to comment.