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
Automated tests in PHP 8.0 generate the error "Returning bool from comparison function is deprecated".
Proposed resolution
Use the spaceship operator instead of greater-than in a callback function used by uasort() in WebformElementController.
Issue fork webform-3254801
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
Liam MorlandTests now pass on PHP 8.0.
Comment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at Webform module Open Collective, The Big Blue House commented