Add PHP 8.2 support

Created on 6 December 2022, about 2 years ago
Updated 24 July 2023, over 1 year ago

Problem/Motivation

Tests are failing on PHP 8.2. Let's see if we can fix that.

Postponed until laminas/laminas-feed is compatible with laminas/laminas-servicemanager 4.0.

The reason is that Drupal 10 requires psr/container ~2.0.2 and laminas/laminas-servicemanager 3.x requires prs/container ^1.0.
laminas/laminas-servicemanager 4.x is compatible with psr/container 2.0, but because laminas/laminas-feed isn't compatible with laminas/laminas-servicemanager 4.x yet, Feeds cannot be installed on Drupal 10 + PHP 8.2.

An issue is opened for laminas/laminas-feed, requesting compatibility with laminas/laminas-servicemanager 4.0:
https://github.com/laminas/laminas-feed/issues/75

Until that one is fixed, it looks like that there's nothing the Feeds team can do to make Feeds installable on Drupal 10 + PHP 8.2. It can be installed on Drupal 10 + PHP 8.1 and that's because laminas/laminas-servicemanager 3.15 is compatible with psr/container 2.0, but not with PHP 8.2. That looks like to be an error (as noted in https://github.com/laminas/laminas-servicemanager/pull/147), because laminas/laminas-servicemanager 3.16 isn't.

Possible workaround to install Feeds on PHP 8.2 now (not tested):

composer require drupal/feeds --ignore-platform-reqs

or

composer require drupal/feeds --ignore-platform-req=php

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇳🇱Netherlands megachriz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024