Problem/Motivation

During the running cron after the Drupal 10 upgrade I've got the error
Call to a member function toArray() on bool in Drupal\smart_date_recur\Plugin\QueueWorker\RecurRuleUpdate->processItem()
Sometimes this $rule->getNewInstances() returns FALSE and we need to process that case.

Comments

gena.io created an issue. See original summary.

gena.io’s picture

gena.io’s picture

Status: Active » Needs review
mandclu’s picture

StatusFileSize
new885 bytes

Thanks for raising this, and for submitting a patch. I think we can resolve the error without needing to call makeRuleInstances() an extra time. Please test this updated patch.

gena.io’s picture

Hi @mandclu
I can confirm that your patch is working, a good one with new PHP 8 features:)

gena.io’s picture

Status: Needs review » Reviewed & tested by the community

  • mandclu committed d2bad5f6 on 4.1.x
    Issue #3399016 by gena.io, mandclu: Call to a member function toArray()...
mandclu’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the feedback, merged this fix.

Status: Fixed » Closed (fixed)

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