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

Fixes for lib/SimpleSAML/HTTP

parent 36d83058
No related branches found
No related tags found
No related merge requests found
...@@ -20,11 +20,11 @@ use Symfony\Component\Routing\RequestContext; ...@@ -20,11 +20,11 @@ use Symfony\Component\Routing\RequestContext;
*/ */
class Router class Router
{ {
/** @var ArgumentResolver */
protected $arguments; protected $arguments;
/** @var \SimpleSAML\Configuration */ /** @var \SimpleSAML\Configuration|null */
protected $config; protected $config = null;
/** @var RequestContext */ /** @var RequestContext */
protected $context; protected $context;
...@@ -32,17 +32,17 @@ class Router ...@@ -32,17 +32,17 @@ class Router
/** @var EventDispatcher */ /** @var EventDispatcher */
protected $dispatcher; protected $dispatcher;
/** @var Request */ /** @var Request|null */
protected $request; protected $request = null;
/** @var \SimpleSAML\Module\ControllerResolver */ /** @var \SimpleSAML\Module\ControllerResolver */
protected $resolver; protected $resolver;
/** @var \SimpleSAML\Session */ /** @var \SimpleSAML\Session|null */
protected $session; protected $session = null;
/** @var RequestStack */ /** @var RequestStack|null */
protected $stack; protected $stack = null;
/** /**
...@@ -94,6 +94,7 @@ class Router ...@@ -94,6 +94,7 @@ class Router
* Send a given response to the browser. * Send a given response to the browser.
* *
* @param Response $response The response to send. * @param Response $response The response to send.
* @return void
*/ */
public function send(Response $response) public function send(Response $response)
{ {
...@@ -106,6 +107,7 @@ class Router ...@@ -106,6 +107,7 @@ class Router
* Set the configuration to use by the controller. * Set the configuration to use by the controller.
* *
* @param \SimpleSAML\Configuration $config * @param \SimpleSAML\Configuration $config
* @return void
*/ */
public function setConfiguration(Configuration $config) public function setConfiguration(Configuration $config)
{ {
...@@ -118,6 +120,7 @@ class Router ...@@ -118,6 +120,7 @@ class Router
* Set the session to use by the controller. * Set the session to use by the controller.
* *
* @param \SimpleSAML\Session $session * @param \SimpleSAML\Session $session
* @return void
*/ */
public function setSession(Session $session) public function setSession(Session $session)
{ {
......
...@@ -60,7 +60,7 @@ class RunnableResponse extends Response ...@@ -60,7 +60,7 @@ class RunnableResponse extends Response
/** /**
* "Send" this response by actually running the callable. * "Send" this response by actually running the callable.
* *
* @return mixed * @return self
*/ */
public function send() 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