paragonie/sodium_compat

Weird classes thrown

Closed this issue · 4 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.

Okay. Thank you.

I remove @throw where it is really caught.