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

Comments

moshe weitzman created an issue. See original summary.

moshe weitzman’s picture

Priority: Normal » Major
japerry’s picture

Status: Active » Fixed

  • japerry committed fb3ad4ec on 8.x-3.x
    Issue #3298855 by japerry: Ensure max() function operates when no types...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.