JSON Object notation deprecated for repositories in composer.json
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3571387. --> Reported by: [tommyk](https://www.drupal.org/user/382217) Related to !798 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>I was curious about the different syntax in the drupal/core-recommended composer.json vs. the drupal/cms composer.json in terms of the repositories property. When reading the <a href="https://getcomposer.org/doc/04-schema.md#repositories">Composer documentation</a> I noticed that the JSON Object notation is now considered deprecated. (See <a href="https://github.com/composer/composer/commit/f414237dd8ec058d30d99f2fe4eb15a1aafb65b1#diff-d30724f99c0018b0aede6fe3065ff808927d714b61aff523d225cd3a3edfc7ba">the commit with the change</a>. Also <a href="https://drupal.slack.com/archives/C0888RPP4JV/p1769988947592359">the Slack conversation that prompted this issue</a>.)</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Use the array syntax instead of the key/value syntax.</p>
issue