mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-11-26 20:34:59 +01:00
add psalm accomodations
cc @muglug
This commit is contained in:
parent
0f9281721b
commit
1f567ab2ed
@ -13,6 +13,7 @@ namespace Psl\Password;
|
||||
*/
|
||||
function algorithms(): array
|
||||
{
|
||||
/** @psalm-var list<string> */
|
||||
return [
|
||||
BCRYPT_ALGORITHM,
|
||||
ARGON2I_ALGORITHM,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user