From 22f678315724fac5390623fd296a4e4a8a0478e2 Mon Sep 17 00:00:00 2001 From: Lee Rowlands Date: Mon, 23 Sep 2019 08:35:40 +1000 Subject: [PATCH] Issue #3081679 by eiriksm: AjaxResponse::getCommands has wrong return type --- core/lib/Drupal/Core/Ajax/AjaxResponse.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/Ajax/AjaxResponse.php b/core/lib/Drupal/Core/Ajax/AjaxResponse.php index 189a7b29ae..87fb3588cb 100644 --- a/core/lib/Drupal/Core/Ajax/AjaxResponse.php +++ b/core/lib/Drupal/Core/Ajax/AjaxResponse.php @@ -58,8 +58,8 @@ public function addCommand(CommandInterface $command, $prepend = FALSE) { /** * Gets all AJAX commands. * - * @return \Drupal\Core\Ajax\CommandInterface[] - * Returns all previously added AJAX commands. + * @return array + * Returns render arrays for all previously added commands. */ public function &getCommands() { return $this->commands; -- GitLab