The verify() method has a risky return values -1, 0 and 1. PHP may cast -1 in a boolean context to true, making any error during signature processing evaluate to true. So this return value should be checked carefully in applications that use the method. Document this in the comment blocks. Also update the tests to invoke it 'the right way', to avoid the wrong construct being copied by someone to live code.
The verify() method has a risky return values -1, 0 and 1. PHP may cast -1 in a boolean context to true, making any error during signature processing evaluate to true. So this return value should be checked carefully in applications that use the method. Document this in the comment blocks. Also update the tests to invoke it 'the right way', to avoid the wrong construct being copied by someone to live code.