Skip to content
Snippets Groups Projects
Commit e6dc80f0 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Fix warning in request.php

* Added proper @property tags
* RunTimeException => RuntimeException

Makes code analyzers happier
parent e6fb139e
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,13 @@ use OCP\Security\ISecureRandom; ...@@ -44,6 +44,13 @@ use OCP\Security\ISecureRandom;
/** /**
* Class for accessing variables in the request. * Class for accessing variables in the request.
* This class provides an immutable object with request variables. * 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 { class Request implements \ArrayAccess, \Countable, IRequest {
...@@ -260,7 +267,7 @@ class Request implements \ArrayAccess, \Countable, IRequest { ...@@ -260,7 +267,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
* @param string $id * @param string $id
*/ */
public function __unset($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');
} }
/** /**
......
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