Weird classes thrown
Closed this issue · 4 comments
szepeviktor commented
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
szepeviktor commented
There is no Sodium\Error nor Sodium\Exception.
paragonie-scott commented
It's \SodiumException
, not Sodium\Exception
.
paragonie-scott commented
If you're curious about the explicit \
prefix: https://github.com/UnderhandedCrypto/entries/blob/master/2014/submissions/ScottArcizewski/email-exerpt.txt
szepeviktor commented
Okay. Thank you.
I remove @throw
where it is really caught.