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

Fix LessSpecificImplementedReturnType (2x)

parent 5e751af0
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
......@@ -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()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment