Skip to content
Snippets Groups Projects
Commit f637f62c authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix return type

parent 1082da8d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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