Drupal 8 ships with Symfony's mbstring polyfill which makes some methods in \Drupal\Component\Utility\Unicode obsolete.

Replace \Drupal\Component\Utility\Unicode::strlen() with mb_strlen()
Replace \Drupal\Component\Utility\Unicode::strtoupper() with mb_strtoupper()
Replace \Drupal\Component\Utility\Unicode::strtolower() with mb_strtolower()
Replace \Drupal\Component\Utility\Unicode::substr() with mb_substr()
Replace \Drupal\Component\Utility\Unicode::strpos() with mb_strpos()

Comments

Kshiteej Pitta created an issue. See original summary.

satyanarayan reddy’s picture

Status: Active » Needs review
StatusFileSize
new1.92 KB

Replace the deprecated functions

drunken monkey’s picture

Status: Needs review » Fixed

Ah, right! Thanks!
Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.