Skip to content
Snippets Groups Projects

Issue #3257776: PHP 8.1 EasyBreadcrumbBuilder::normalizeText deprecation

1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -876,13 +876,16 @@ class EasyBreadcrumbBuilder implements BreadcrumbBuilderInterface {
* E.g., transforms "about-us" to "About Us" or "About us", according to
* parameters.
*
* @param string $raw_text
* @param string|null $raw_text
* Text to be normalized.
*
* @return string
* Normalized title.
*/
private function normalizeText($raw_text) {
if (empty($raw_text)) {
return '';
}
// Transform '-hello--world_javascript-' to 'hello world javascript'.
$normalized_text = str_replace(['-', '_'], ' ', $raw_text);
Loading