Merge pull request #23142 from owncloud/request_properties

Fix analyzer warnings in request.php
This commit is contained in:
Thomas Müller 2016-03-23 11:03:37 +01:00
commit e9d62741e8
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.
* 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');
}
/**