mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 02:07:09 +00:00
RSA/XML: rm redundant check
This commit is contained in:
parent
89944c813c
commit
c73b9f0884
@ -42,10 +42,6 @@ abstract class XML
|
|||||||
*/
|
*/
|
||||||
public static function load($key, $password = '')
|
public static function load($key, $password = '')
|
||||||
{
|
{
|
||||||
if (!extension_loaded('dom')) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!Strings::is_stringable($key)) {
|
if (!Strings::is_stringable($key)) {
|
||||||
throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key));
|
throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user