Problem/Motivation

Under PHP 8.1:

  TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid   
  callback, non-static method Drupal\taxonomy_entity_index\BatchService::proc  
  essEntityTypeReindex() cannot be called statically in _drush_batch_worker()  
   (line 256 of /var/www/cms/docroot/vendor/drush/drush/includes/batch.inc).

This is a new thing in PHP 8. Surprised it hasn't been fixed already. Maybe I missed something :

Steps to reproduce

Run the rebuild Drush command.

Proposed resolution

Gonna try to just change these to static methods and see if that works. If that doesn't, there are a few valid approaches.

Remaining tasks

Do the thing, see if it works.

User interface changes

None.

API changes

Data model changes

Comments

natedouglas created an issue. See original summary.

natedouglas’s picture

larowlan’s picture

Status: Active » Needs review

larowlan’s picture

Status: Needs review » Fixed

Thanks, I'll cut 8.x-1.10 shortly with this

larowlan’s picture

Status: Fixed » Closed (fixed)

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