The trait SimpleSAML\XML\XMLStringElementTrait requires some properties which are not provided by SimpleSAML\SAML2\XML\mdui\GeolocationHint: $localName, $namespaceURI
Loading history...
19
20
21
/**
22
* Validate the content of the element.
23
*
24
* @param string $content The value to go in the XML textContent
25
* @throws \Exception on failure
26
* @return void
27
*/
28
protected function validateContent(string $content): void
29
{
30
Assert::notEmpty($content, 'GeolocationHint cannot be empty');
31
Assert::regex($content, '/^geo:([-+]?\d+(?:\.\d+)?),([-+]?\d+(?:\.\d+)?)(?:\?z=(\d{1,2}))?$/', 'Content is not a valid geolocation');