paragonie / sodium_compat

Pure PHP polyfill for ext/sodium

Home Page:https://paragonie.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

commented

It's \SodiumException, not Sodium\Exception.

Okay. Thank you.

I remove @throw where it is really caught.