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

Fully typehint lib/HTTP/*.php

parent 005021fc
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ class RunnableResponse extends Response ...@@ -29,7 +29,7 @@ class RunnableResponse extends Response
* @param callable $callable A callable that we should run as part of this response. * @param callable $callable A callable that we should run as part of this response.
* @param array $args An array of arguments to be passed to the callable. Note that each element of the array * @param array $args An array of arguments to be passed to the callable. Note that each element of the array
*/ */
public function __construct(callable $callable, $args = []) public function __construct(callable $callable, array $args = [])
{ {
$this->arguments = $args; $this->arguments = $args;
$this->callable = $callable; $this->callable = $callable;
...@@ -43,7 +43,7 @@ class RunnableResponse extends Response ...@@ -43,7 +43,7 @@ class RunnableResponse extends Response
* *
* @return callable * @return callable
*/ */
public function getCallable() public function getCallable() : callable
{ {
return $this->callable; return $this->callable;
} }
...@@ -54,7 +54,7 @@ class RunnableResponse extends Response ...@@ -54,7 +54,7 @@ class RunnableResponse extends Response
* *
* @return array * @return array
*/ */
public function getArguments() public function getArguments() : array
{ {
return $this->arguments; return $this->arguments;
} }
......
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