diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php index eca7553103363f4b62a47e7c27dc3d738dd2e06b..ffbb53122f3f40d844afebbd3222125c63d8e8b2 100644 --- a/lib/SimpleSAML/XHTML/Template.php +++ b/lib/SimpleSAML/XHTML/Template.php @@ -632,9 +632,11 @@ class Template extends Response /** * Search through entity metadata to find the best value for a * specific property. It will search in order for the current language, default - * language and fallback language; if not found it returns null. + * language and fallback language; it will return the property value (which + * can be a string, array or other type allowed in metadta, if not found it + * returns null. */ - public function getEntityPropertyTranslation(string $property, array $data): ?string + public function getEntityPropertyTranslation(string $property, array $data) { $tryLanguages = $this->translator->getLanguage()->getPreferredLanguages();