Fix warning in request.php

* Added proper @property tags
* RunTimeException => RuntimeException

Makes code analyzers happier
This commit is contained in:
Roeland Jago Douma 2016-03-11 11:50:19 +01:00
parent e6fb139eb9
commit e6dc80f0f3
1 changed files with 8 additions and 1 deletions

View File

@ -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 {
* @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');
} }
/** /**