Error: Attempt to assign property on array in WebformLibrariesCommands->setComposerLibraries()

Created on 26 August 2024, 3 months ago

Description:

When executing the drush webform:composer:update command, an error occurs: Error: Attempt to assign property "codemirror" on array in WebformLibrariesCommands->setComposerLibraries(). This issue seems to stem from the $repositories and $require variables being treated as arrays rather than objects, causing a type conflict.

Steps to Reproduce:

1. Install the Webform module.
2. Run the command: drush webform:composer:update.
3. Confirm the prompt to update composer.json.

Proposed Solution:
Ensure that $repositories and $require are initialized as objects before manipulating them. Use type casting checks to prevent type-related errors.

πŸ› Bug report
Status

Active

Version

6.2

Component

Code

Created by

πŸ‡ΈπŸ‡¦Saudi Arabia mesharideb

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