PHP8 incompat when a purger supports no types

Created on 21 July 2022, over 2 years ago
Updated 26 September 2023, over 1 year ago
ValueError: max(): Argument #1 ($value) must contain at least one element

/var/www/html/docroot/modules/contrib/purge/src/Plugin/Purge/Purger/CapacityTracker.php:339

This happens when you disable a purger by making it support no types. This works fine on PHP7 bit not on PHP8. This can happen when you use an approach like https://www.drupal.org/project/purge/issues/2757155#comment-14335634 ✨ Provide a mechanism to disable a purger and queuer Fixed

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States moshe weitzman Boston, MA

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