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

Remove unreachable exception: array key is always int or string.

parent 64609935
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ class sspmod_core_Auth_Process_AttributeAlter extends SimpleSAML_Auth_Processing
// check if this is an option
if($value === '%replace') {
$this->replace = TRUE;
} elseif ($value == '%remove') {
} elseif ($value === '%remove') {
$this->remove = TRUE;
} else {
throw new SimpleSAML_Error_Exception('Unknown flag : ' . var_export($value, TRUE));
......@@ -65,11 +65,6 @@ class sspmod_core_Auth_Process_AttributeAlter extends SimpleSAML_Auth_Processing
continue;
}
// Unknown flag
if (!is_string($name)) {
throw new SimpleSAML_Error_Exception('Unknown flag : ' . var_export($name, TRUE));
}
// Set pattern
if ($name === 'pattern') {
$this->pattern = $value;
......
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