Merge pull request #50444 from nextcloud/jtr-docs-dispatcher-return

docs(dispatcher): Correct described return values
ci/49145/php-8.4-external-storages
Ferdinand Thiessen 2025-04-24 00:26:34 +07:00 committed by GitHub
commit 8b1dcb9759
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

@ -90,9 +90,11 @@ class Dispatcher {
* @param Controller $controller the controller which will be called
* @param string $methodName the method name which will be called on
* the controller
* @return array $array[0] contains a string with the http main header,
* $array[1] contains headers in the form: $key => value, $array[2] contains
* the response output
* @return array $array[0] contains the http status header as a string,
* $array[1] contains response headers as an array,
* $array[2] contains response cookies as an array,
* $array[3] contains the response output as a string,
* $array[4] contains the response object
* @throws \Exception
*/
public function dispatch(Controller $controller, string $methodName): array {