The trait SimpleSAML\XML\XMLStringElementTrait requires some properties which are not provided by SimpleSAML\SAML2\XML\mdui\DomainHint: $localName, $namespaceURI
Loading history...
20
21
22
/**
23
* Validate the content of the element.
24
*
25
* @param string $content The value to go in the XML textContent
26
* @throws \Exception on failure
27
* @return void
28
*/
29
protected function validateContent(string $content): void
30
{
31
Assert::notEmpty($content, 'DomainHint cannot be empty');
32
33
if (!filter_var($content, FILTER_VALIDATE_DOMAIN)) {
34
throw new InvalidArgumentException('DomainHint is not a valid hostname.');