From f637f62c91fd4e632ed2ec1ab0dabe745554df49 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Thu, 26 May 2022 12:44:06 +0200
Subject: [PATCH] Fix return type

---
 modules/saml/lib/Controller/Metadata.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/saml/lib/Controller/Metadata.php b/modules/saml/lib/Controller/Metadata.php
index b4ff1428f..97f4d8780 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);
-- 
GitLab