Incomplete license values will cause a PHP warning in Drupal 10.1 compatibility fix

Created on 20 December 2023, about 1 year ago
Updated 4 August 2024, 5 months ago

Problem/Motivation

Error occurs:
Warning: Undefined array key "url" in Drupal\Core\Asset\CssCollectionOptimizerLazy->optimizeGroup() (line 160 of /app/docroot/core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php)

Similar fix:
🐛 Undefined Library Licence URL - PHP Warning Needs review

See patch

Steps to reproduce

Upgrade to Drupal 10.1.7
Install fontawesome 2.26

rebuild cache
see warning

Caused by invalid LICENSE information in fontawesome.libraries.yml

Proposed resolution

See patch

Remaining tasks

review/commit patch and tag a release.

User interface changes

Squelch annoying warning that occurs in D10.1.7

API changes

Remove invalid license entries.

Data model changes

N/A

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇨🇦Canada joseph.olstad

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