GoogleApiServiceClientInterface getAuthConfig

Created on 22 August 2025, about 1 month ago

Problem/Motivation

Interface raises a warning in higher phpstan levels. Json::decode would return mixed.

GoogleApiServiceClientInterface

  /**
   * Function returns Json file of the account.
   *
   * @return string
   *   Returns the JSON.
   */
  public function getAuthConfig();

GoogleApiServiceClient

  /**
   * {@inheritdoc}
   */
  public function getAuthConfig() {
    return Json::decode($this->auth_config);
  }

Proposed resolution

Update interface return and docblock to mixed.

  /**
   * Get the authentication configuration.
   *
   * @return mixed
   *   Returns the decoded JSON.
   */
  public function getAuthConfig();

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

4.5

Component

Code

Created by

🇦🇺Australia almunnings Melbourne, 🇦🇺

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024