Skip to content

Commit

Permalink
Fix return value
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Jan 3, 2018
1 parent a14a262 commit ead016d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/XMLSecEnc.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,12 @@ public function encryptNode($objKey, $replace = true)
}
$this->rawNode->appendChild($importEnc);
return $importEnc;
default:
throw new Exception('No valid type');
}
} else {
return $this->encdoc->documentElement;
}

return $this->encdoc->documentElement;
}

/**
Expand Down

0 comments on commit ead016d

Please sign in to comment.