add psalm accomodations

cc @muglug
This commit is contained in:
azjezz 2020-12-21 19:44:22 +01:00
parent 0f9281721b
commit 1f567ab2ed
2 changed files with 1 additions and 4 deletions

View File

@ -13,6 +13,7 @@ namespace Psl\Password;
*/
function algorithms(): array
{
/** @psalm-var list<string> */
return [
BCRYPT_ALGORITHM,
ARGON2I_ALGORITHM,

View File

@ -16,8 +16,6 @@ use Psl\Type\Exception\CoercionException;
final class BoolType extends Type\Type
{
/**
* @psalm-return bool
*
* @throws CoercionException
*/
public function coerce($value): bool
@ -38,8 +36,6 @@ final class BoolType extends Type\Type
}
/**
* @psalm-return bool
*
* @psalm-assert bool $value
*
* @throws AssertException