diff --git a/core/modules/history/history.module b/core/modules/history/history.module index 01a8564..fb5d304 100644 --- a/core/modules/history/history.module +++ b/core/modules/history/history.module @@ -10,6 +10,7 @@ */ use Drupal\Core\Entity\EntityInterface; +use Drupal\Core\Session\AccountInterface; /** * Entities changed before this time are always shown as read. @@ -53,7 +54,7 @@ function history_read($entity_type, $entity_id) { * (optional) The user account to update the history for. Defaults to the * current user. */ -function history_write($entity_type, $entity_id, $account = NULL) { +function history_write($entity_type, $entity_id, AccountInterface $account = NULL) { global $user; if (!isset($account)) {