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
TermInterface::getWeight
has a documented return type of int, but it actually returns strings.
Steps to reproduce
Call the method.
Proposed resolution
Two possibilities:
- Cast the return value to an integer and remove int castings of the method result throughout core
- Change the return type to string
Issue fork drupal-3317758
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
DieterHolvoet CreditAttribution: DieterHolvoet as a volunteer commentedComment #4
joachim CreditAttribution: joachim as a volunteer commentedLGTM.
Comment #7
catchCommitted/pushed to 10.1.x and cherry-picked back through to 9.5.x, thanks!