Problem/Motivation
Some error messages and types have changed in PHP 8.
Steps to reproduce
See #3156595: Make Drupal 9 installable on PHP8
Proposed resolution
Depending PHP version adjust test expectations.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
N/a
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3178998-2.patch | 6.7 KB | alexpott |
Comments
Comment #2
alexpottThis patch has been carved off #3156595: Make Drupal 9 installable on PHP8
Comment #3
alexpottComment #4
alexpottComment #5
andypostlooks it need manual testing to confirm, this tests pass on php 8, otoh it's part of passed https://www.drupal.org/pift-ci-job/1863463
So just need to make sure all changes moved
Comment #6
catchDo we want a @todo remove when Drupal requires PHP 8/drops support for PHP 7.4 for each of these?
Comment #7
alexpott@catch I don't think so. The issue to remove PHP 7 stuff will be quite big and involve far more.
Comment #8
andypost@catch I filed #3179048: [meta] Remove dead code/unneeded compatibility layers now that PHP 8.1 is required as it already has child issue for GD object
Comment #9
andypostAll 4 tests running fine on php8 locally using patch #3156595-112: Make Drupal 9 installable on PHP8
I compared patch #2 with cumulative one from issue above and it contains exactly only fixes for the scope (remains has separate issues)
it looks backportable to 8.9
Comment #10
alexpottTo clarify why I think an @todo is not required here... Once you have a comparison as obvious as this I think an @todo is not necessary because this is clearly something that relies on PHP version. Any issue that is trying to remove code that depends on unsupported PHP versions needs to grep for this type of thing.
Comment #13
catchYeah OK on the comment, PHP_VERSION_ID is indeed very greppable by itself and andypost thanks for filing #3179048: [meta] Remove dead code/unneeded compatibility layers now that PHP 8.1 is required
Committed 9066196 and pushed to 9.2.x. Thanks! Cherry-picked to 9.1.x