Merge pull request #24225 from nextcloud/enh/dataresponse_typehints
Fix DataResponse typehints
This commit is contained in:
commit
33bceacc82
|
@ -41,13 +41,13 @@ class DataResponse extends Response {
|
|||
|
||||
/**
|
||||
* response data
|
||||
* @var array|object
|
||||
* @var array|int|float|string|bool|object
|
||||
*/
|
||||
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 array $headers additional key value based headers
|
||||
* @since 8.0.0
|
||||
|
@ -64,7 +64,7 @@ class DataResponse extends Response {
|
|||
|
||||
/**
|
||||
* 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
|
||||
* @since 8.0.0
|
||||
*/
|
||||
|
@ -77,7 +77,7 @@ class DataResponse extends Response {
|
|||
|
||||
/**
|
||||
* Used to get the set parameters
|
||||
* @return array the data
|
||||
* @return array|int|float|string|bool|object the data
|
||||
* @since 8.0.0
|
||||
*/
|
||||
public function getData() {
|
||||
|
|
Loading…
Reference in New Issue