- Merge request !33Issue #3257776: PHP 8.1 EasyBreadcrumbBuilder::normalizeText deprecation → (Closed) created by hmendes
During the build of the breacrumb, NULL values can be passed to EasyBreadcrumbBuilder::normalizeText
, from EasyBreadcrumbBuilder::getTitleString
for example, which triggers a deprecation in PHP 8.1:
Deprecated function: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in Drupal\easy_breadcrumb\EasyBreadcrumbBuilder->normalizeText() (line 888 of modules/contrib/easy_breadcrumb/src/EasyBreadcrumbBuilder.php).
We should return early an empty string if there is nothing to normalize and update the method documentation.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.