php drupal-check.phar modules/contrib/textfield_counter/
 7/7 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  Line   src/Plugin/Field/FieldWidget/TextFieldCounterWidgetTrait.php (in context of class Drupal\textfield_counter\Plugin\Field\FieldWidget\StringTextareaWithCounterWidget)  
 ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  344    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.                                                                                         
  347    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.                                                                                         
 ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 

 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  Line   src/Plugin/Field/FieldWidget/TextFieldCounterWidgetTrait.php (in context of class Drupal\textfield_counter\Plugin\Field\FieldWidget\StringTextfieldWithCounterWidget)  
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  344    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.                                                                                          
  347    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.                                                                                          
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  Line   src/Plugin/Field/FieldWidget/TextFieldCounterWidgetTrait.php (in context of class Drupal\textfield_counter\Plugin\Field\FieldWidget\TextareaWithCounterWidget)  
 ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  344    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.                                                                                   
  347    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.                                                                                   
 ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 

 ------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  Line   src/Plugin/Field/FieldWidget/TextFieldCounterWidgetTrait.php (in context of class Drupal\textfield_counter\Plugin\Field\FieldWidget\TextareaWithSummaryAndCounterWidget)  
 ------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  344    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.                                                                                             
  347    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.                                                                                             
 ------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 

 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  Line   src/Plugin/Field/FieldWidget/TextFieldCounterWidgetTrait.php (in context of class Drupal\textfield_counter\Plugin\Field\FieldWidget\TextfieldWithCounterWidget)  
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  344    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.                                                                                    
  347    Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode.                                                                                    
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------- 

                                                                                                                        
 [ERROR] Found 10 errors   
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Sergiu Stici created an issue. See original summary.

Sergiu Stici’s picture

Status: Active » Needs review
FileSize
1.17 KB

Here's the patch, please review.

bblake’s picture

Status: Needs review » Reviewed & tested by the community

Verified it removes the deprecations and functionality looks good too.

jkswoods’s picture

Looks good! I think it'd be great to get this committed with #3123816: Compatibility with Drupal 9

jastraat’s picture

Any chance this will be committed in the near future?

elgandoz’s picture

Priority: Normal » Major

Yes, this patch made this module compatible with D9 long before it got released, now for me it's holding off the upgrade for few projects. Please @Jaypan merge this and #3123816.

chegor’s picture

Can we go with this?

3li’s picture

Re-rolled on 8.x-1.11, #2 would not apply.

  • Eli.Stone authored 7bd580a on 8.x-1.x
    Issue #3091693 by Sergiu Stici, Eli.Stone: Deprecated Code Report
    
Jaypan’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks guys.

Status: Fixed » Closed (fixed)

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