Undefined Library Licence URL - PHP Warning

Created on 10 August 2023, 11 months ago
Updated 24 June 2024, 5 days ago

Problem/Motivation

When running Bootstrap Library 2.0.2 on Drupal 10.1.2, I'm getting the following warning in the logs:

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

This is caused by the libraries defined in bootstrap_library.libraries.yml not having the URL set with the licensing information.

In the documentation β†’ is says "it's a good idea" to add licensing information, but in practice it generates this warning when providing the information with no URL.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kerasai

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024