diff --git a/modules/saml/lib/Controller/Metadata.php b/modules/saml/lib/Controller/Metadata.php index b4ff1428f61e3f1916ea9c76a3291fd093b97920..97f4d8780e9c72e9cdefb2f81c22d33e25d6b70e 100644 --- a/modules/saml/lib/Controller/Metadata.php +++ b/modules/saml/lib/Controller/Metadata.php @@ -65,9 +65,9 @@ class Metadata * This endpoint will offer the SAML 2.0 IdP metadata. * * @param \Symfony\Component\HttpFoundation\Request $request - * @return \SimpleSAML\HTTP\RunnableResponse + * @return \SimpleSAML\HTTP\RunnableResponse|\Symfony\Component\HttpFoundation\Response */ - public function metadata(Request $request): RunnableResponse + public function metadata(Request $request): Response { if ($this->config->getBoolean('enable.saml20-idp') === false || !Module::isModuleEnabled('saml')) { throw new Error\Error('NOACCESS', null, 403);