jeedom / core

Software for home automation
https://www.jeedom.com
GNU General Public License v2.0
383 stars 312 forks source link

composer in packages.json causes dependencies installation error #2703

Closed Flobul closed 1 week ago

Flobul commented 2 weeks ago

With composer packages in a plugin, installing dependencies causes object/array error:

Capture d’écran 2024-06-22 à 14 57 10

Same error, when opening check package.

json_decode should be displayed as array, not object as surely intended. Next line is foreach ($datas['installed'] not foreach ($datas->installed

Here is the fix.

Description

Suggested changelog entry

Related issues/external references

Fixes #

Types of changes

PR checklist

pifou25 commented 2 weeks ago

haha, c'est bon ça j'ai fait la même PR à 1h près :D https://github.com/jeedom/core/pull/2701/files#