From 4b5c82172557ff8f3a348b65e1029a7dec4d7a73 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Sun, 11 Aug 2019 22:45:03 +0200 Subject: [PATCH] Fully typehint lib/HTTP/*.php --- lib/SimpleSAML/HTTP/RunnableResponse.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/SimpleSAML/HTTP/RunnableResponse.php b/lib/SimpleSAML/HTTP/RunnableResponse.php index 697b3ea7b..cd1523fd0 100644 --- a/lib/SimpleSAML/HTTP/RunnableResponse.php +++ b/lib/SimpleSAML/HTTP/RunnableResponse.php @@ -29,7 +29,7 @@ class RunnableResponse extends 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 */ - public function __construct(callable $callable, $args = []) + public function __construct(callable $callable, array $args = []) { $this->arguments = $args; $this->callable = $callable; @@ -43,7 +43,7 @@ class RunnableResponse extends Response * * @return callable */ - public function getCallable() + public function getCallable() : callable { return $this->callable; } @@ -54,7 +54,7 @@ class RunnableResponse extends Response * * @return array */ - public function getArguments() + public function getArguments() : array { return $this->arguments; } -- GitLab