Problem/Motivation

As of commit: 711dc92e75fb9a5f241622146f0c51665a8e1c4f

 ------ ----------------------------------------------------------------------------------- 
  Line   google_analytics.module                                                            
 ------ ----------------------------------------------------------------------------------- 
  216    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.      
  216    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.      
  224    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.      
  671    Call to deprecated method strtolower() of class Drupal\Component\Utility\Unicode.  
  675    Call to deprecated method strtolower() of class Drupal\Component\Utility\Unicode.  
 ------ ----------------------------------------------------------------------------------- 

 ------ ----------------------------------------------------------------------------------- 
  Line   src/Form/GoogleAnalyticsAdminSettingsForm.php                                      
 ------ ----------------------------------------------------------------------------------- 
  586    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.      
  595    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.      
  724    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.      
  949    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.      
  952    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.      
  997    Call to deprecated method strtolower() of class Drupal\Component\Utility\Unicode.  
 ------ ----------------------------------------------------------------------------------- 

                                                                                                                        
 [ERROR] Found 11 errors

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ChaseOnTheWeb created an issue. See original summary.

ChaseOnTheWeb’s picture

Status: Active » Needs review
FileSize
5.51 KB

Attached is a patch that changes the Unicode::strlen and Unicode::strtolower to mb_* per [#2850048]. Per the change record, this should be a drop-in replacement compatible back to core 8.1.

ChaseOnTheWeb’s picture

This patch is the same as #2, but we also no longer need 'use Drupal\Component\Utility\Unicode'.

hass’s picture

Status: Needs review » Closed (duplicate)
Parent issue: » #3034176: Use mb_* functions instead of Unicode::* methods
hass’s picture

Status: Closed (duplicate) » Needs review

  • hass committed 3c8a15e on 8.x-3.x authored by ChaseOnTheWeb
    Issue #3042572 by ChaseOnTheWeb: Drupal 9 Deprecated Code Report
    
hass’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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