diff -u b/core/modules/history/history.module b/core/modules/history/history.module --- b/core/modules/history/history.module +++ b/core/modules/history/history.module @@ -88,7 +88,7 @@ * \Drupal\history\HistoryRepositoryInterface::updateLastViewed() instead. * @see https://www.drupal.org/node/2197189 */ -function history_write($nid, $account = NULL) { +function history_write($nid, AccountInterface $account = NULL) { if (!isset($account)) { $account = \Drupal::currentUser();