Weird classes thrown
szepeviktor opened this issue · comments
I'm doing static analysis.
Could you help me fix thrown types in code vs. in PHPDoc?
https://github.com/paragonie/sodium_compat/blob/master/lib/sodium_compat.php#L41-L60
There is no Sodium\Error nor Sodium\Exception.
It's \SodiumException
, not Sodium\Exception
.
If you're curious about the explicit \
prefix: https://github.com/UnderhandedCrypto/entries/blob/master/2014/submissions/ScottArcizewski/email-exerpt.txt
Okay. Thank you.
I remove @throw
where it is really caught.