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
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3349058-3.patch | 708 bytes | adil_siddiqui |
Issue fork tmgmt_crowdin-3349058
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3349058-typeerror-arraykeyexists-when
changes, plain diff MR !13
Comments
Comment #2
phma commentedComment #3
adil_siddiqui commentedPatch created
Comment #8
heddnThanks for the fixes here.