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.
Problem/Motivation
drupal-check on version:
82d10a54c91283d4da4daba97ae795c5f1efc14d
------ ----------------------------------------------------------------------------------------------------------
Line tests/src/Unit/FieldValue/FieldValueTest.php
------ ----------------------------------------------------------------------------------------------------------
34 Call to deprecated method getName() of class Drupal\twig_field_value\Twig\Extension\FieldValueExtension.
------ ----------------------------------------------------------------------------------------------------------
[ERROR] Found 1 error
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3042620_2.patch | 648 bytes | joycehutch |
|
Comments
Comment #2
joycehutch CreditAttribution: joycehutch commentedRemoved FieldValueTest::testExtensionName() because AbstractExtension::getName() is deprecated in Twig 1.26 anticipating removal in Twig 2.0.
Comment #3
joycehutch CreditAttribution: joycehutch as a volunteer commentedComment #4
geerlingguy CreditAttribution: geerlingguy as a volunteer and at Midwestern Mac, LLC commentedAdding one tag, and unassigning so someone else can review :)
Thanks for the patch, @joycehutch!
Comment #5
Sutharsan CreditAttribution: Sutharsan at LimoenGroen commentedThanks for the patch. Code looks good. My remaining question “What is the replacement” got answered here: https://github.com/twigphp/Twig/pull/2148/files
It is (internally) replaced by the class name.
Comment #7
Sutharsan CreditAttribution: Sutharsan at LimoenGroen commented