Skip to content
Snippets Groups Projects

Automated Project Update Bot fixes

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -48,7 +48,7 @@ class SeoFixBrokenLinkBatch {
// release the item and skip to the next queue.
$queue->releaseItem($item);
watchdog_exception('cron', $e);
\Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.1.0', fn() => \Drupal\Core\Utility\Error::logException(\Drupal::logger('cron'), $e), fn() => watchdog_exception('cron', $e));
// Skip to the next queue.
$context['interrupted'] = TRUE;
@@ -56,7 +56,7 @@ class SeoFixBrokenLinkBatch {
catch (\Exception $e) {
// In case of any other kind of exception, log it and leave the item
// in the queue to be processed again later.
watchdog_exception('cron', $e);
\Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.1.0', fn() => \Drupal\Core\Utility\Error::logException(\Drupal::logger('cron'), $e), fn() => watchdog_exception('cron', $e));
}
}
}
Loading