1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-12 17:17:26 +01:00

Merge branch '3.0'

This commit is contained in:
terrafrost 2022-07-15 12:29:19 -05:00
commit 35be18b292

View File

@ -42,10 +42,6 @@ abstract class XML
*/ */
public static function load($key): array public static function load($key): array
{ {
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));
} }