Problem/Motivation
ON 10.6.x when you run it on PHP 8.1 you will get a warning on PHP 8.1 - some of tests try to cope with the variation using \Drupal\Tests\RequirementsPageTrait but are doing so incorrectly. See https://git.drupalcode.org/project/drupal/-/pipelines/732843
We will hit this again the moment we start recommending people update to PHP 8.5 on Drupal 11 in order to prepare for Drupal 12
Steps to reproduce
Run PHP 8.1 tests on 10.6.x
Proposed resolution
Fix tests.
Remaining tasks
User interface changes
None
Introduced terminology
N/a
API changes
None
Data model changes
None
Release notes snippet
N/a
Issue fork drupal-3571492
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:
- 3571492-12.x
changes, plain diff MR !14641
- 3571492-several-tests-fail
changes, plain diff MR !14639
Comments
Comment #3
alexpottNote this issue will need forward porting all the way to main :)
Comment #5
alexpottWe're green on PHP 7.1 / MySQL 5.7 / 10.6.x and on main with the same fix so I think we're good to go here.
Comment #6
catchOh this looks sensible, let's do it.
Comment #11
longwaveCommitted and pushed a524d016a9c to main and dcaea8493fc to 11.x and d37bfd70f53 to 11.3.x. Thanks!
Committed and pushed f739f7aa98c to 10.6.x. Thanks!