Skip to content
Snippets Groups Projects
Commit e7e8eceb authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Clean up remaining support for 'debug' as a bool.

parent 7565df19
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment