diff --git a/lib/SimpleSAML/Error/Exception.php b/lib/SimpleSAML/Error/Exception.php index c0b339fd6ff049f1057bfa80387d869d06f575c5..40c5569941c7974d7372af2217598b0588e3ec8c 100644 --- a/lib/SimpleSAML/Error/Exception.php +++ b/lib/SimpleSAML/Error/Exception.php @@ -200,7 +200,7 @@ class Exception extends \Exception protected function logBacktrace(int $level = Logger::DEBUG): void { // Do nothing if backtraces have been disabled in config. - $debug = Configuration::getInstance()->getArrayize('debug', ['backtraces' => true]); + $debug = Configuration::getInstance()->getArray('debug', ['backtraces' => true]); if (array_key_exists('backtraces', $debug) && $debug['backtraces'] === false) { return; } diff --git a/lib/SimpleSAML/Utils/XML.php b/lib/SimpleSAML/Utils/XML.php index 348afcbe6407588a7470b17bf5508f03887d8c6f..e15b9084cd21128dc0a2ebd399e6b62ba1fa438f 100644 --- a/lib/SimpleSAML/Utils/XML.php +++ b/lib/SimpleSAML/Utils/XML.php @@ -52,7 +52,7 @@ class XML } // see if debugging is enabled for XML validation - $debug = Configuration::getInstance()->getArrayize('debug', ['validatexml' => false]); + $debug = Configuration::getInstance()->getArray('debug', ['validatexml' => false]); if ( !( @@ -100,16 +100,13 @@ class XML } // see if debugging is enabled for SAML messages - $debug = Configuration::getInstance()->getArrayize('debug', ['saml' => false]); + $debug = Configuration::getInstance()->getArray('debug', ['saml' => false]); if ( !(in_array('saml', $debug, true) // implicitly enabled || (array_key_exists('saml', $debug) - && $debug['saml'] === true) - // explicitly enabled - // TODO: deprecate the old style and remove it in 2.0 - || (array_key_exists(0, $debug) - && $debug[0] === true)) // old style 'debug' + && $debug['saml'] === true) // explicitly enabled + ) ) { // debugging messages is disabled return;