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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | smart_date-cron_error-3399016-4.patch | 885 bytes | mandclu |
Comments
Comment #2
gena.io commentedComment #3
gena.io commentedComment #4
mandclu commentedThanks 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.
Comment #5
gena.io commentedHi @mandclu
I can confirm that your patch is working, a good one with new PHP 8 features:)
Comment #6
gena.io commentedComment #8
mandclu commentedThanks for the feedback, merged this fix.