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
Method return*() of class PHPUnit\Framework\TestCase is deprecated in PHPUnit 10.
Proposed resolution
Use $double->willReturn*() instead.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3433052
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
mondrakeComment #4
SpokjeSaid it before and will say it again:
Replacement makes sense, couldn't find any other occurrences than the ones in the MR, Green tests => RTBC.
Comment #5
mondrakeComment #8
catchCommitted/pushed to 11.x and cherry-picked to 10.3.x, thanks!