mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-30 20:59:14 +00:00
BigInteger: make constructor catch behave same as setEngine
This commit is contained in:
parent
256ffcca7b
commit
03e15a5ab9
@ -137,8 +137,7 @@ class BigInteger implements \Serializable
|
|||||||
try {
|
try {
|
||||||
self::setEngine($engine[0], isset($engine[1]) ? $engine[1] : []);
|
self::setEngine($engine[0], isset($engine[1]) ? $engine[1] : []);
|
||||||
break;
|
break;
|
||||||
} catch (\InvalidArgumentException $e) {
|
} catch (\Exception $e) {
|
||||||
} catch (BadConfigurationException $e) {
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user