Warnings and deprecations in SDC Styleguide Demo Components service

Created on 12 September 2024, about 1 year ago
Updated 17 September 2024, 12 months ago

Problem/Motivation

The Styleguide Demo Components submodule generates several warnings and deprecations that need to be addressed.

Warning: Undefined array key "name" in Drupal\sdc_styleguide\Service\SDCDemoManager->getDemos() (line 83 of /var/www/html/web/modules/contrib/sdc_styleguide/src/Service/SDCDemoManager.php)

Deprecated function: strcmp(): Passing null to parameter #1 ($string1) of type string is deprecated in Drupal\sdc_styleguide\Service\SDCDemoManager->Drupal\sdc_styleguide\Service\{closure}() (line 129 of /var/www/html/web/modules/contrib/sdc_styleguide/src/Service/SDCDemoManager.php)

Deprecated function: strcmp(): Passing null to parameter #2 ($string2) of type string is deprecated in Drupal\sdc_styleguide\Service\SDCDemoManager->Drupal\sdc_styleguide\Service\{closure}() (line 129 of /var/www/html/web/modules/contrib/sdc_styleguide/src/Service/SDCDemoManager.php)

Steps to reproduce

* Drupal 10.3 Site running on PHP 8.3
* version 1.1.0-beta2 of sdc_styleguide
* Enable sdc_styleguide_demo_components
* Enable core dblog module
* Browse around the styleguide at /styleguide/explorer
* Check the DBLog report there are several reported issues, including stack dumps not included in this issue. The main error messages are included above.

πŸ› Bug report
Status

Postponed: needs info

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lhridley

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