Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#8 | textfield_counter-deprecated-3091693-8.patch | 946 bytes | 3li |
#2 | deprecated-3091693-2.patch | 1.17 KB | Sergiu Stici |
Comments
Comment #2
Sergiu Stici CreditAttribution: Sergiu Stici at FFW commentedHere's the patch, please review.
Comment #3
bblake CreditAttribution: bblake at Phase2 commentedVerified it removes the deprecations and functionality looks good too.
Comment #4
jkswoods CreditAttribution: jkswoods at interactive investor commentedLooks good! I think it'd be great to get this committed with #3123816: Compatibility with Drupal 9
Comment #5
jastraat CreditAttribution: jastraat at Technivant commentedAny chance this will be committed in the near future?
Comment #6
elgandoz CreditAttribution: elgandoz as a volunteer commentedYes, 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.
Comment #7
chegor CreditAttribution: chegor as a volunteer commentedCan we go with this?
Comment #8
3liRe-rolled on 8.x-1.11, #2 would not apply.
Comment #10
Jaypan CreditAttribution: Jaypan commentedCommitted. Thanks guys.