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

Fix LessSpecificImplementedReturnType (2x)

parent 924f7b97
No related branches found
No related tags found
No related merge requests found
...@@ -63,9 +63,11 @@ class RunnableResponse extends Response ...@@ -63,9 +63,11 @@ class RunnableResponse extends Response
/** /**
* "Send" this response by actually running the callable. * "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); return call_user_func_array($this->callable, $this->arguments);
} }
......
...@@ -503,10 +503,12 @@ class Template extends Response ...@@ -503,10 +503,12 @@ class Template extends Response
/** /**
* Send this template as a response. * Send this template as a response.
* *
* @return Response This response. * @return $this This response.
* @throws \Exception if the template cannot be found. * @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(); $this->content = $this->getContents();
return parent::send(); return parent::send();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment