The hash rule actually validates against a hexidecimal string representation of a hash. You might want to add that in the name, because in essence the hashes named are just a bunch of bits / bytes. The fact that PHP represents most in hex doesn't mean that something is a valid / invalid hash.
What is expected
Rename it to HashRepresentation($hash_algo, Hash::HEXIDECIMAL_INSENSITIVE) or something, indicating that you're validating a hexidecimal representation of a hash.
What
The hash rule actually validates against a
hexidecimal string representation
of a hash. You might want to add that in the name, because in essence the hashes named are just a bunch of bits / bytes. The fact that PHP represents most in hex doesn't mean that something is a valid / invalid hash.What is expected
Rename it to
HashRepresentation($hash_algo, Hash::HEXIDECIMAL_INSENSITIVE)
or something, indicating that you're validating a hexidecimal representation of a hash.