Problem/Motivation

In image.module on line 985, this error may occur: Trying to access array offset on value of type bool.

Steps to reproduce

See: https://www.drupal.org/pift-ci-job/2027230

Issue fork drupal-3208079

Command icon 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:

Comments

Liam Morland created an issue. See original summary.

liam morland’s picture

Status: Active » Needs review
liam morland’s picture

The first solution silences the error message without changing behavior. The second one is probably a better overall solution.

poker10’s picture

Thanks @Liam Morland!

Is this issue still relevant? I see that the Features module does pass PHP 8 tests currently (https://www.drupal.org/node/401392/qa), so I am curious if this was a D7 core issue, which was fixed by some other issue, or it was a Features bug (probably sending an incomplete data to the image_style_flush), which is already fixed.

Reference: #3206790: Enable testing for PHP 8.0

poker10’s picture

Status: Needs review » Postponed (maintainer needs more info)
liam morland’s picture

Status: Postponed (maintainer needs more info) » Needs review

I don't know anymore. I'm not using Drupal 7 anymore. It's a simple fix, though.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.