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