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
Issue fork drupal-3208079
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
Comment #3
liam morlandComment #4
liam morlandThe first solution silences the error message without changing behavior. The second one is probably a better overall solution.
Comment #5
poker10 commentedThanks @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
Comment #6
poker10 commentedComment #7
liam morlandI don't know anymore. I'm not using Drupal 7 anymore. It's a simple fix, though.