From e6dc80f0f37548bb0c7dbc7c198899ab0135b9fe Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 11 Mar 2016 11:50:19 +0100 Subject: [PATCH] Fix warning in request.php * Added proper @property tags * RunTimeException => RuntimeException Makes code analyzers happier --- lib/private/appframework/http/request.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/private/appframework/http/request.php b/lib/private/appframework/http/request.php index caddb5a235..2dc636fcff 100644 --- a/lib/private/appframework/http/request.php +++ b/lib/private/appframework/http/request.php @@ -44,6 +44,13 @@ use OCP\Security\ISecureRandom; /** * Class for accessing variables in the request. * This class provides an immutable object with request variables. + * + * @property mixed[] cookies + * @property mixed[] env + * @property mixed[] files + * @property string method + * @property mixed[] parameters + * @property mixed[] server */ class Request implements \ArrayAccess, \Countable, IRequest { @@ -260,7 +267,7 @@ class Request implements \ArrayAccess, \Countable, IRequest { * @param string $id */ public function __unset($id) { - throw new \RunTimeException('You cannot change the contents of the request object'); + throw new \RuntimeException('You cannot change the contents of the request object'); } /**