diff --git a/core/modules/comment/comment.api.php b/core/modules/comment/comment.api.php
index 95c3e1d..dab2766 100644
--- a/core/modules/comment/comment.api.php
+++ b/core/modules/comment/comment.api.php
@@ -54,7 +54,7 @@ function hook_comment_update(Drupal\comment\Comment $comment) {
  * @param array $comments
  *  An array of comment objects indexed by cid.
  */
-function hook_comment_load(Drupal\comment\Comment $comments) {
+function hook_comment_load(array $comments) {
   $result = db_query('SELECT cid, foo FROM {mytable} WHERE cid IN (:cids)', array(':cids' => array_keys($comments)));
   foreach ($result as $record) {
     $comments[$record->cid]->foo = $record->foo;
@@ -66,9 +66,9 @@ function hook_comment_load(Drupal\comment\Comment $comments) {
  *
  * @param Drupal\comment\Comment $comment
  *   Passes in the comment the action is being performed on.
- * @param $view_mode
+ * @param string $view_mode
  *   View mode, e.g. 'full', 'teaser'...
- * @param $langcode
+ * @param string $langcode
  *   The language code used for rendering.
  *
  * @see hook_entity_view()
@@ -91,7 +91,7 @@ function hook_comment_view(Drupal\comment\Comment $comment, $view_mode, $langcod
  * comment.tpl.php. See drupal_render() and theme() documentation respectively
  * for details.
  *
- * @param $build
+ * @param array $build
  *   A renderable array representing the comment.
  * @param Drupal\comment\Comment $comment
  *   The comment being rendered.
@@ -99,7 +99,7 @@ function hook_comment_view(Drupal\comment\Comment $comment, $view_mode, $langcod
  * @see comment_view()
  * @see hook_entity_view_alter()
  */
-function hook_comment_view_alter(&$build, Drupal\comment\Comment $comment) {
+function hook_comment_view_alter(array &$build, Drupal\comment\Comment $comment) {
   // Check for the existence of a field added by another module.
   if ($build['#view_mode'] == 'full' && isset($build['an_additional_field'])) {
     // Change its weight.
