summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-03-11 11:50:19 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-03-23 07:59:20 +0100
commite6dc80f0f37548bb0c7dbc7c198899ab0135b9fe (patch)
tree49ddad0679d63dc2d3b63f2269ca52f3d35cf3a3 /lib
parente6fb139eb911f397a2143296621228fa1f1601fc (diff)
downloadnextcloud-server-e6dc80f0f37548bb0c7dbc7c198899ab0135b9fe.tar.gz
nextcloud-server-e6dc80f0f37548bb0c7dbc7c198899ab0135b9fe.zip
Fix warning in request.php
* Added proper @property tags * RunTimeException => RuntimeException Makes code analyzers happier
Diffstat (limited to 'lib')
-rw-r--r--lib/private/appframework/http/request.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/private/appframework/http/request.php b/lib/private/appframework/http/request.php
index caddb5a235d..2dc636fcff2 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');
}
/**