CssCollectionOptimizerLazy and JsCollectionOptimizerLazy use removed inherited member state

Created on 18 January 2024, 5 months ago
Updated 31 March 2024, 3 months ago

Problem/Motivation

CssCollectionOptimizerLazy and JsCollectionOptimizerLazy both call methods on an inherited state member variable that has been removed.

Steps to reproduce

Install Drupal 10.2.2 with Flysystem 2.2.x (I used commit b80a666 at the time of replicating the issue) and flysystem_s3 2.1.1. Attempting to rebuild cache through drush results in the error

Undefined property: Drupal\flysystem\Asset\CssCollectionOptimizerLazy::$state CssCollectionOptimizerLazy.php:19

If the usage of state at that line is removed and drush cr is run again, then a similar error is raised.

Fatal error: Uncaught Error: Call to a member function delete() on null in /var/www/html/docroot/modules/contrib/flysystem/src/Asset/JsCollectionOptimizerLazy.php:19

Proposed resolution

Remove the references to state in these classes.

Remaining tasks

All the things.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Eli-T Manchester

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024