Problem/Motivation
8.9.x still supports PHP 7.0 until its end-of-life on November 2, 2020.
HEAD has been failing on PHP 7.0 since December due to erroneously backported void typehints for the setUp() method in phpunit tests.
While there is a low risk of this affecting anything other than core development since this is only test code, it does put in a situation where an actual functional regression on PHP 7.0 will be hard to spot due to the noise of failing tests.
Proposed resolution
Get rid of the incorrectly backported void typehints and fix any future backports.
Remaining tasks
User interface changes
N/A
API changes
None.
Data model changes
None.
Release notes snippet
N/A
Issue fork drupal-3225960
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
xjmComment #5
xjmComment #6
xjmThanks @quietone for the fix.
Undid some overzealous string-replace changes that broke the PHPUnit 7 compatibility magic; hopefully this should pass on PHP 7.3 again.
Comment #7
xjmDuh, did not need to queue the PHP 8 environment because 8.9 does not support PHP 8.
Comment #8
andypostLooks now it pass
Comment #10
catchCommitted 4be9fce and pushed to 8.9.x. Thanks!