diff --git a/lib/SimpleSAML/HTTP/RunnableResponse.php b/lib/SimpleSAML/HTTP/RunnableResponse.php
index 44a0df24d0d119a811029c126a9a90ac6225706f..32938c1bba7f3002aeba1b1d85ec86946527b4cc 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 37ebe5a3a6a009d9afd0c33d2d9d47c407248307..83cb7658f966d299e6515179a2d9d7a20774ac05 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();