From Use mb_* functions instead of Unicode::* methods

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

ameykinalekar created an issue. See original summary.

ameykinalekar’s picture

StatusFileSize
new2.46 KB

Please find attached patch for deprecated function

ameykinalekar’s picture

Assigned: ameykinalekar » Unassigned
aks22’s picture

Status: Active » Needs review

nils.destoop’s picture

Status: Needs review » Fixed

Thx for the patch. I committed it to dev.

Status: Fixed » Closed (fixed)

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

aks22’s picture