Skip to content

Commit

Permalink
RestBase::post() fix PHPDoc type for $p_payload
Browse files Browse the repository at this point in the history
In addition to string (json), it can also be array or object.
  • Loading branch information
dregad committed Aug 25, 2019
1 parent f34df1d commit 8364f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/rest/RestBase.php
Expand Up @@ -135,7 +135,7 @@ protected function delete( $p_relative_path, $p_query_string ) {

/**
* @param string $p_relative_path The relative path under `/api/rest/` e.g. `/issues`.
* @param string $p_payload The payload object, it will be json encoded before sending.
* @param mixed $p_payload The payload object, it will be json encoded before sending.
* @return mixed|string The response object.
*/
protected function post( $p_relative_path, $p_payload ) {
Expand Down

0 comments on commit 8364f6e

Please sign in to comment.