TypeError: array_key_exists() when looking up webhook_id_by_project_id

Created on 20 March 2023, over 1 year ago
Updated 7 June 2024, 24 days ago

Problem/Motivation

TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given in array_key_exists() (line 76 of /app/web/modules/contrib/tmgmt_crowdin/src/Controller/CrowdinWebhookController.php)

Steps to reproduce

Submit a new job to Crowdin

Proposed resolution

Needs a check if $webhook_id_by_project_id is an array and not FALSE.

Remaining tasks

  • Create a patch to fix TypeError
  • Document how $webhook_id_by_project_id is being used
  • Possibly move this to a private temp store?

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.5

Component

Code

Created by

🇨🇭Switzerland phma Basel, CH

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024