Incorrect return type annotation on WebformSubmissionInterface::getToken

Created on 26 October 2023, about 1 year ago

Problem/Motivation

WebformSubmissionInterface::getToken has the following return type delcaration:

  /**
   * Gets the webform submission's token.
   *
   * @return array
   *   The webform submission data.
   */

However the getToken function will return the submission's token as a string. This seems like a copy-paste error, as the comment below the return typing also doesn't reflect what is returned.

Proposed resolution

  /**
   * Gets the webform submission's token.
   *
   * @return string
   *   The webform submission's token.
   */
🐛 Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

🇳🇱Netherlands Zevior

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024