From a43edd79646c2888e40d9a4e145191800a82b911 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Wed, 13 May 2020 23:04:27 +0200
Subject: [PATCH] Fix LessSpecificImplementedReturnType (2x)

---
 lib/SimpleSAML/HTTP/RunnableResponse.php | 6 ++++--
 lib/SimpleSAML/XHTML/Template.php        | 4 +++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/lib/SimpleSAML/HTTP/RunnableResponse.php b/lib/SimpleSAML/HTTP/RunnableResponse.php
index 3b4fb7231..7ed7aad47 100644
--- a/lib/SimpleSAML/HTTP/RunnableResponse.php
+++ b/lib/SimpleSAML/HTTP/RunnableResponse.php
@@ -63,9 +63,11 @@ class RunnableResponse extends Response
     /**
      * "Send" this response by actually running the callable.
      *
-     * @return self
+     * @return $this
+     *
+     * Note: No return-type possible due to upstream limitations
      */
-    public function sendContent(): object
+    public function sendContent()
     {
         return call_user_func_array($this->callable, $this->arguments);
     }
diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php
index e8f6c5cff..e691c2af8 100644
--- a/lib/SimpleSAML/XHTML/Template.php
+++ b/lib/SimpleSAML/XHTML/Template.php
@@ -527,8 +527,10 @@ class Template extends Response
     /**
      * Send this template as a response.
      *
-     * @return Response This response.
+     * @return $this This response.
      * @throws \Exception if the template cannot be found.
+     *
+     * Note: No return type possible due to upstream limitations
      */
     public function send()
     {
-- 
GitLab