Merge pull request #24225 from nextcloud/enh/dataresponse_typehints

Fix DataResponse typehints
This commit is contained in:
Morris Jobke 2020-11-19 21:33:46 +01:00 committed by GitHub
commit 33bceacc82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -41,13 +41,13 @@ class DataResponse extends Response {
/** /**
* response data * response data
* @var array|object * @var array|int|float|string|bool|object
*/ */
protected $data; protected $data;
/** /**
* @param array|object $data the object or array that should be transformed * @param array|int|float|string|bool|object $data the object or array that should be transformed
* @param int $statusCode the Http status code, defaults to 200 * @param int $statusCode the Http status code, defaults to 200
* @param array $headers additional key value based headers * @param array $headers additional key value based headers
* @since 8.0.0 * @since 8.0.0
@ -64,7 +64,7 @@ class DataResponse extends Response {
/** /**
* Sets values in the data json array * Sets values in the data json array
* @param array|object $data an array or object which will be transformed * @param array|int|float|string|object $data an array or object which will be transformed
* @return DataResponse Reference to this object * @return DataResponse Reference to this object
* @since 8.0.0 * @since 8.0.0
*/ */
@ -77,7 +77,7 @@ class DataResponse extends Response {
/** /**
* Used to get the set parameters * Used to get the set parameters
* @return array the data * @return array|int|float|string|bool|object the data
* @since 8.0.0 * @since 8.0.0
*/ */
public function getData() { public function getData() {