From 8a346de88d904fcf87ff02e949852004b07ff852 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        | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/lib/SimpleSAML/HTTP/RunnableResponse.php b/lib/SimpleSAML/HTTP/RunnableResponse.php
index 44a0df24d..32938c1bb 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 37ebe5a3a..83cb7658f 100644
--- a/lib/SimpleSAML/XHTML/Template.php
+++ b/lib/SimpleSAML/XHTML/Template.php
@@ -503,10 +503,12 @@ 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(): Response
+    public function send()
     {
         $this->content = $this->getContents();
         return parent::send();
-- 
GitLab