Commit 6a164398 authored by catch's avatar catch
Browse files

fix: #3563876 TypeError: trigger_error(): Argument #2 () must be of type int,...

fix: #3563876 TypeError: trigger_error(): Argument #2 () must be of type int, string given in trigger_error()

By: ivnish
By: smustgrave
(cherry picked from commit 1982e851)
parent 27c8e17f
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ public function forbiddenMessage(EntityInterface $entity, $field_name) {
   * {@inheritdoc}
   */
  public function getCountNewComments(EntityInterface $entity, $field_name = NULL, $timestamp = 0) {
    @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Use \Drupal\history\HistoryManager::getCountNewComments() instead. See https://www.drupal.org/project/drupal/issues/3551729', 'E_USER_DEPRECATED');
    @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Use \Drupal\history\HistoryManager::getCountNewComments() instead. See https://www.drupal.org/project/drupal/issues/3551729', E_USER_DEPRECATED);
    if (!$this->moduleHandler->moduleExists('history')) {
      return FALSE;
    }