Problem/Motivation
The current code fails in PHP 8, which is needed for Drupal 10
Proposed resolution
First apply fixes from #3299455: Automated Drupal 10 compatibility fixes, then add fixes for php 8
Remaining tasks
Verify tests pass on Drupal 9.5 + php 7.4 or 8, plus Drupal 10 + php 8
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3338660-8.patch | 4.14 KB | pwolanin |
| #7 | 3338660-7.patch | 4.14 KB | pwolanin |
| #5 | 3338660-5.patch | 3.85 KB | pwolanin |
| #4 | 3338660-4.patch | 1.86 KB | pwolanin |
| #2 | views-streaming-data-php8.patch | 1.36 KB | kdebisschop |
Comments
Comment #2
kdebisschop commentedsee https://www.php.net/releases/8.1/en.php
The signature for explode is:
Passing null gives this error:
Also, there is a type compatibility issue around \Drupal\views_streaming_data\StreamingViewExecutable::getIterator that requires \Traversable to be set as return type.
Comment #3
pwolanin commentedComment #4
pwolanin commentedComment #5
pwolanin commentedComment #6
pwolanin commentedThis is failing on Drupal 10 due to issues with the csv_serialization module.
We need to either use the 3.x branch + this fix https://www.drupal.org/project/csv_serialization/issues/3294354
Or see that fixes are added to the 2.x branch and update our dependency to only that.
Comment #7
pwolanin commentedComment #8
pwolanin commentedComment #10
pwolanin commentedComment #11
kdebisschop commentedpatch in #8 looks good