Prepare for PHP 8.1

Created on 16 October 2021, about 3 years ago
Updated 18 June 2023, over 1 year ago

Drupal 9.3 is going to be compatible with the (not yet released) PHP version 8.1. In order to prepare for this, I tested Rules against the current PHP 8.1-rc2 release: See https://www.drupal.org/pift-ci-job/2208540 β†’

There seems to be just one problem reported:

Exception: Deprecated function: Return type of Drupal\rules\Plugin\RulesExpression\RuleExpression::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
include()() (Line: 34)

Let's see if this patch will fix that and reveal any other problems.

πŸ“Œ Task
Status

Fixed

Version

3.0

Component

Rules Core

Created by

πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

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.

  • πŸ‡΅πŸ‡±Poland Graber

    @maintainers, can we have that and other fixes that are committed and fixed released? The last release was like 1.5 year ago and list of composer patches on some project is really long and gets harder to maintain every day.

Production build 0.71.5 2024