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

addContact: fix assertions for removed $type parameter

parent 1a1e9c65
No related branches found
No related tags found
No related merge requests found
......@@ -630,10 +630,11 @@ class SAMLBuilder
*/
public function addContact(array $details): void
{
Assert::oneOf($type, ['technical', 'support', 'administrative', 'billing', 'other']);
Assert::notNull($details['contactType']);
Assert::oneOf($details['contactType'], ['technical', 'support', 'administrative', 'billing', 'other']);
$e = new \SAML2\XML\md\ContactPerson();
$e->setContactType($type);
$e->setContactType($details['contactType']);
if (!empty($details['attributes'])) {
$e->setContactPersonAttributes($details['attributes']);
......
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